]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-42060.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-42060.rs
1 fn main() {
2     let thing = ();
3     let other: typeof(thing) = thing; //~ ERROR attempt to use a non-constant value in a constant
4     //~^ ERROR `typeof` is a reserved keyword but unimplemented [E0516]
5 }
6
7 fn f(){
8     let q = 1;
9     <typeof(q)>::N //~ ERROR attempt to use a non-constant value in a constant
10     //~^ ERROR `typeof` is a reserved keyword but unimplemented [E0516]
11 }
12