]> git.lizzy.rs Git - rust.git/blob - src/test/ui/use/use-self-type.rs
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[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() {}