Skip to content

Commit bfaabab

Browse files
committed
Rust: Update more expectations.
1 parent 7a25596 commit bfaabab

File tree

1 file changed

+4
-4
lines changed
  • rust/ql/test/library-tests/type-inference

1 file changed

+4
-4
lines changed

rust/ql/test/library-tests/type-inference/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ mod loops {
19421942

19431943
// for loops with containers
19441944

1945-
let vals3 = vec![1, 2, 3]; // $ MISSING: type=vals3:Vec<i32>
1945+
let vals3 = vec![1, 2, 3]; // $ MISSING: type=vals3:Vec type=vals3:T.i32
19461946
for i in vals3 { } // $ MISSING: type=i:i32
19471947

19481948
let vals4a : Vec<u16> = [1u16, 2, 3].to_vec(); // $ type=vals4a:Vec type=vals4a:T.u16
@@ -1971,9 +1971,9 @@ mod loops {
19711971
map1.insert(1, Box::new("one")); // $ method=insert
19721972
map1.insert(2, Box::new("two")); // $ method=insert
19731973
for key in map1.keys() { } // $ method=keys MISSING: type=key:i32
1974-
for value in map1.values() { } // $ method=values MISSING: type=value:Box type=value:Box.T:&T.str
1975-
for (key, value) in map1.iter() { } // $ method=iter MISSING: type=key:i32 type=value:Box type=value:Box.T:&T.str
1976-
for (key, value) in &map1 { } // $ MISSING: type=key:i32 type=value:Box type=value:Box.T:&T.str
1974+
for value in map1.values() { } // $ method=values MISSING: type=value:Box type=value:T.&T.str
1975+
for (key, value) in map1.iter() { } // $ method=iter MISSING: type=key:i32 type=value:Box type=value:T.&T.str
1976+
for (key, value) in &map1 { } // $ MISSING: type=key:i32 type=value:Box type=value:T.&T.str
19771977

19781978
// while loops
19791979

0 commit comments

Comments
 (0)