]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-42060.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-42060.rs
CommitLineData
a7813a04 1fn main() {
8faf50e0
XL
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]
54a0048b 5}
8faf50e0
XL
6
7fn 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}