summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-42060.rs
blob: 1740b238343c83b5513be22015172785c98685f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    let thing = ();
    let other: typeof(thing) = thing; //~ ERROR attempt to use a non-constant value in a constant
    //~^ ERROR `typeof` is a reserved keyword but unimplemented [E0516]
}

fn f(){
    let q = 1;
    <typeof(q)>::N //~ ERROR attempt to use a non-constant value in a constant
    //~^ ERROR `typeof` is a reserved keyword but unimplemented [E0516]
}