We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17d23a9 commit f720102Copy full SHA for f720102
1 file changed
rust/ql/test/library-tests/type-inference/main.rs
@@ -73,7 +73,7 @@ mod method_impl {
73
74
impl Foo {
75
pub fn m1(self) -> Self {
76
- self
+ self // $ type=self:Foo
77
}
78
79
pub fn m2(self) -> Foo {
@@ -108,7 +108,7 @@ mod trait_impl {
108
impl MyTrait<bool> for MyThing {
109
// MyThing::trait_method
110
fn trait_method(self) -> bool {
111
- self.field // $ fieldof=MyThing
+ self.field // $ type=self:MyThing fieldof=MyThing
112
113
114
0 commit comments