mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-25 10:37:25 +00:00
12 lines
224 B
Rust
12 lines
224 B
Rust
fn main() {
|
|
super let a = 1;
|
|
//~^ ERROR `super let` is experimental
|
|
}
|
|
|
|
// Check that it also isn't accepted in cfg'd out code.
|
|
#[cfg(any())]
|
|
fn a() {
|
|
super let a = 1;
|
|
//~^ ERROR `super let` is experimental
|
|
}
|