blob: aa4725b7e7adaae0e4f8ff437971b6b28dfb4454 (
plain)
1
2
3
4
5
6
7
8
|
const x : u8 = 300;
export fn entry() usize { return @sizeOf(@TypeOf(x)); }
// error
// backend=stage2
// target=native
//
// :1:16: error: type 'u8' cannot represent integer value '300'
|