]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/keyword/keyword-self-as-identifier.stderr
Removed feature gate.
[rust.git] / src / test / ui / keyword / keyword-self-as-identifier.stderr
index 296269819f8364507501645c8b26ca448ea72c42..dbb106e8d53a536fbd1d726d39f2807457fae508 100644 (file)
@@ -4,15 +4,7 @@ error[E0531]: cannot find unit struct/variant or constant `Self` in this scope
 LL |     let Self = 22; //~ ERROR cannot find unit struct/variant or constant `Self` in this scope
    |         ^^^^ not found in this scope
 
-error[E0658]: `Self` struct constructors are unstable (see issue #51994)
-  --> $DIR/keyword-self-as-identifier.rs:12:9
-   |
-LL |     let Self = 22; //~ ERROR cannot find unit struct/variant or constant `Self` in this scope
-   |         ^^^^
-   |
-   = help: add #![feature(self_struct_ctor)] to the crate attributes to enable
-
-error: aborting due to 2 previous errors
+error: aborting due to 1 previous error
 
 Some errors occurred: E0531, E0658.
 For more information about an error, try `rustc --explain E0531`.