We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c66b108 commit 3030613Copy full SHA for 3030613
tests/associated_type/src/lib.rs
@@ -8,16 +8,16 @@ pub struct DefaultImpl;
8
9
impl Trait for DefaultImpl {
10
type Impl = Self;
11
- fn exec(env: &Env) -> String {
+ fn exec(env: &Env, _i: u32) -> String {
12
String::from_str(env, "default")
13
}
14
15
16
pub trait Trait {
17
type Impl: Trait;
18
19
20
- Self::Impl::exec(env)
+ fn exec(env: &Env, i: u32) -> String {
+ Self::Impl::exec(env, i)
21
22
23
@@ -27,7 +27,7 @@ pub struct Contract;
27
#[contractimpl]
28
impl Trait for Contract {
29
type Impl = DefaultImpl;
30
- fn exec(env: &Env) -> String;
+ fn exec(env: &Env, _i: u64);
31
32
33
#[cfg(test)]
0 commit comments