1 error[E0432]: unresolved import `self::Self`
2 --> $DIR/self_type_keyword-2.rs:1:5
4 LL | use self::Self as Foo; //~ ERROR unresolved import `self::Self`
5 | ^^^^^^^^^^^^^^^^^ no `Self` in the root
7 error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
8 --> $DIR/self_type_keyword-2.rs:4:9
11 | ^^^^ not found in this scope
13 error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
14 --> $DIR/self_type_keyword-2.rs:8:9
17 | ^^^^ not found in this scope
19 error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
20 --> $DIR/self_type_keyword-2.rs:10:18
22 LL | Foo { x: Self } => (),
23 | ^^^^ not found in this scope
25 error: aborting due to 4 previous errors
27 Some errors occurred: E0432, E0531.
28 For more information about an error, try `rustc --explain E0432`.