]>
Commit | Line | Data |
---|---|---|
a7813a04 | 1 | fn 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 | |
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 | } |