1 error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
2 --> $DIR/keyword-self-as-identifier.rs:12:9
4 LL | let Self = 22; //~ ERROR cannot find unit struct/variant or constant `Self` in this scope
5 | ^^^^ not found in this scope
7 error[E0658]: `Self` struct constructors are unstable (see issue #51994)
8 --> $DIR/keyword-self-as-identifier.rs:12:9
10 LL | let Self = 22; //~ ERROR cannot find unit struct/variant or constant `Self` in this scope
13 = help: add #![feature(self_struct_ctor)] to the crate attributes to enable
15 error: aborting due to 2 previous errors
17 Some errors occurred: E0531, E0658.
18 For more information about an error, try `rustc --explain E0531`.