Skip to content

Commit f720102

Browse files
committed
Rust: Add annotations to type inference tests
1 parent 17d23a9 commit f720102

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ mod method_impl {
7373

7474
impl Foo {
7575
pub fn m1(self) -> Self {
76-
self
76+
self // $ type=self:Foo
7777
}
7878

7979
pub fn m2(self) -> Foo {
@@ -108,7 +108,7 @@ mod trait_impl {
108108
impl MyTrait<bool> for MyThing {
109109
// MyThing::trait_method
110110
fn trait_method(self) -> bool {
111-
self.field // $ fieldof=MyThing
111+
self.field // $ type=self:MyThing fieldof=MyThing
112112
}
113113
}
114114

0 commit comments

Comments
 (0)