]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self_type_keyword-2.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / self / self_type_keyword-2.stderr
1 error[E0432]: unresolved import `self::Self`
2   --> $DIR/self_type_keyword-2.rs:11:5
3    |
4 LL | use self::Self as Foo; //~ ERROR unresolved import `self::Self`
5    |     ^^^^^^^^^^^^^^^^^ no `Self` in the root
6
7 error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
8   --> $DIR/self_type_keyword-2.rs:14:9
9    |
10 LL |     let Self = 5;
11    |         ^^^^ not found in this scope
12
13 error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
14   --> $DIR/self_type_keyword-2.rs:19:9
15    |
16 LL |         Self => (),
17    |         ^^^^ not found in this scope
18
19 error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
20   --> $DIR/self_type_keyword-2.rs:22:18
21    |
22 LL |         Foo { x: Self } => (),
23    |                  ^^^^ not found in this scope
24
25 error[E0658]: `Self` struct constructors are unstable (see issue #51994)
26   --> $DIR/self_type_keyword-2.rs:14:9
27    |
28 LL |     let Self = 5;
29    |         ^^^^
30    |
31    = help: add #![feature(self_struct_ctor)] to the crate attributes to enable
32
33 error[E0658]: `Self` struct constructors are unstable (see issue #51994)
34   --> $DIR/self_type_keyword-2.rs:19:9
35    |
36 LL |         Self => (),
37    |         ^^^^
38    |
39    = help: add #![feature(self_struct_ctor)] to the crate attributes to enable
40
41 error[E0658]: `Self` struct constructors are unstable (see issue #51994)
42   --> $DIR/self_type_keyword-2.rs:22:18
43    |
44 LL |         Foo { x: Self } => (),
45    |                  ^^^^
46    |
47    = help: add #![feature(self_struct_ctor)] to the crate attributes to enable
48
49 error: aborting due to 7 previous errors
50
51 Some errors occurred: E0432, E0531, E0658.
52 For more information about an error, try `rustc --explain E0432`.