1 error[E0432]: unresolved import `self::Self`
2 --> $DIR/self_type_keyword-2.rs:11: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:14: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:19: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:22:18
22 LL | Foo { x: Self } => (),
23 | ^^^^ not found in this scope
25 error[E0658]: `Self` struct constructors are unstable (see issue #51994)
26 --> $DIR/self_type_keyword-2.rs:14:9
31 = help: add #![feature(self_struct_ctor)] to the crate attributes to enable
33 error[E0658]: `Self` struct constructors are unstable (see issue #51994)
34 --> $DIR/self_type_keyword-2.rs:19:9
39 = help: add #![feature(self_struct_ctor)] to the crate attributes to enable
41 error[E0658]: `Self` struct constructors are unstable (see issue #51994)
42 --> $DIR/self_type_keyword-2.rs:22:18
44 LL | Foo { x: Self } => (),
47 = help: add #![feature(self_struct_ctor)] to the crate attributes to enable
49 error: aborting due to 7 previous errors
51 Some errors occurred: E0432, E0531, E0658.
52 For more information about an error, try `rustc --explain E0432`.