We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Self
1 parent 704c572 commit 0bc894dCopy full SHA for 0bc894d
1 file changed
rust/ql/test/library-tests/path-resolution/main.rs
@@ -606,6 +606,12 @@ mod trait_visibility {
606
// Only the `Foo` trait is visible
607
use m::Foo; // $ item=Foo
608
X::a_method(&x); // $ item=X_Foo::a_method
609
+
610
+ impl X {
611
+ fn test(&self) {
612
+ Self::a_method(self); // $ item=X_Foo::a_method
613
+ }
614
615
}
616
{
617
// Only the `Bar` trait is visible
0 commit comments