]> git.proxmox.com Git - rustc.git/blob - src/test/ui/typeof/issue-42060.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / typeof / 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 }