]> git.lizzy.rs Git - rust.git/blob - src/test/ui/keyword/keyword-self-as-identifier.stderr
Auto merge of #54080 - PramodBisht:issue/53692, r=estebank
[rust.git] / src / test / ui / keyword / keyword-self-as-identifier.stderr
1 error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
2   --> $DIR/keyword-self-as-identifier.rs:12:9
3    |
4 LL |     let Self = 22; //~ ERROR cannot find unit struct/variant or constant `Self` in this scope
5    |         ^^^^ not found in this scope
6
7 error[E0658]: `Self` struct constructors are unstable (see issue #51994)
8   --> $DIR/keyword-self-as-identifier.rs:12:9
9    |
10 LL |     let Self = 22; //~ ERROR cannot find unit struct/variant or constant `Self` in this scope
11    |         ^^^^
12    |
13    = help: add #![feature(self_struct_ctor)] to the crate attributes to enable
14
15 error: aborting due to 2 previous errors
16
17 Some errors occurred: E0531, E0658.
18 For more information about an error, try `rustc --explain E0531`.