-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Experimental feature gate for super let
#139080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() { | ||
super let a = 1; | ||
//~^ ERROR `super let` is experimental | ||
} | ||
Comment on lines
+1
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't want to run this back through CI, but in follow-up work, let's please remember to add a test that confirms we get this error when the code is |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
error[E0658]: `super let` is experimental | ||
--> $DIR/feature-gate-super-let.rs:2:5 | ||
| | ||
LL | super let a = 1; | ||
| ^^^^^ | ||
| | ||
= note: see issue #139076 <https://github.com/rust-lang/rust/issues/139076> for more information | ||
= help: add `#![feature(super_let)]` to the crate attributes to enable | ||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date | ||
|
||
error: aborting due to 1 previous error | ||
|
||
For more information about this error, try `rustc --explain E0658`. |
Uh oh!
There was an error while loading. Please reload this page.