]> git.lizzy.rs Git - rust.git/blob - src/test/ui/self/self_type_keyword-2.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[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:1: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:4: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:8: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:10:18
21    |
22 LL |         Foo { x: Self } => (),
23    |                  ^^^^ not found in this scope
24
25 error: aborting due to 4 previous errors
26
27 Some errors occurred: E0432, E0531.
28 For more information about an error, try `rustc --explain E0432`.