]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-self-type.rs
Auto merge of #91393 - Julian-Wollersberger:lexer_optimization, r=petrochenkov
[rust.git] / src / test / ui / use / use-self-type.rs
1 struct S;
2
3 impl S {
4     fn f() {}
5     fn g() {
6         use Self::f; //~ ERROR unresolved import
7         pub(in Self::f) struct Z; //~ ERROR use of undeclared type `Self`
8     }
9 }
10
11 fn main() {}