We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Self
1 parent 793d2c7 commit 01cc19cCopy full SHA for 01cc19c
rust/ql/test/library-tests/path-resolution/main.rs
@@ -606,6 +606,13 @@ 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
+ #[rustfmt::skip]
611
+ impl X { // $ item=X
612
+ fn test(&self) {
613
+ Self::a_method(self); // $ item=X_Foo::a_method
614
+ }
615
616
}
617
{
618
// Only the `Bar` trait is visible
0 commit comments