about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-super-let.rs
blob: 7be08003913381cb6b99bab48ecffea1fd92a246 (plain)
1
2
3
4
5
6
7
8
9
10
11
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
}