We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d74fd7 commit 10ca49fCopy full SHA for 10ca49f
tests/generics/src/lib.rs
@@ -15,7 +15,9 @@ impl<'a, 'b> Contract
15
where
16
'a: 'b,
17
{
18
- pub fn empty() {}
+ pub fn exec(i1: u32, i2: &u32, i3: &'b u32) -> u32 {
19
+ i1 + i2 + *i3
20
+ }
21
}
22
23
#[cfg(test)]
@@ -30,6 +32,7 @@ mod test {
30
32
let contract_id = e.register(Contract, ());
31
33
let client = ContractClient::new(&e, &contract_id);
34
- client.empty();
35
+ let res = client.exec(&1, &2, &3);
36
+ assert_eq!(res, 6);
37
38
0 commit comments