Skip to content

Commit 3030613

Browse files
todo: handle cases of input and output inconsistency
1 parent c66b108 commit 3030613

File tree

1 file changed

+4
-4
lines changed
  • tests/associated_type/src

1 file changed

+4
-4
lines changed

tests/associated_type/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ pub struct DefaultImpl;
88

99
impl Trait for DefaultImpl {
1010
type Impl = Self;
11-
fn exec(env: &Env) -> String {
11+
fn exec(env: &Env, _i: u32) -> String {
1212
String::from_str(env, "default")
1313
}
1414
}
1515

1616
pub trait Trait {
1717
type Impl: Trait;
1818

19-
fn exec(env: &Env) -> String {
20-
Self::Impl::exec(env)
19+
fn exec(env: &Env, i: u32) -> String {
20+
Self::Impl::exec(env, i)
2121
}
2222
}
2323

@@ -27,7 +27,7 @@ pub struct Contract;
2727
#[contractimpl]
2828
impl Trait for Contract {
2929
type Impl = DefaultImpl;
30-
fn exec(env: &Env) -> String;
30+
fn exec(env: &Env, _i: u64);
3131
}
3232

3333
#[cfg(test)]

0 commit comments

Comments
 (0)