We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55eb9fb commit 5b5074eCopy full SHA for 5b5074e
rust/ql/test/library-tests/type-inference/main.rs
@@ -1107,6 +1107,11 @@ mod method_call_type_conversion {
1107
// implicit dereference handling doesn't affect nested borrows.
1108
let t = x7.m1(); // $ method=m1 type=t:& type=t:&T.S2
1109
println!("{:?}", x7);
1110
+
1111
+ let x9 : String = "Hello".to_string(); // $ type=x9:String
1112
+ // Implicit `String` -> `str` conversion happense via the `Deref` trait:
1113
+ // https://doc.rust-lang.org/std/string/struct.String.html#deref.
1114
+ let u = x9.parse::<u32>(); // $ MISSING: method=parse type=u:T.u32
1115
}
1116
1117
0 commit comments