2022-09-21 06:05:20 -05:00
|
|
|
pub const A: i8 = -i8::MIN; //~ ERROR constant
|
|
|
|
pub const B: u8 = 200u8 + 200u8; //~ ERROR constant
|
|
|
|
pub const C: u8 = 200u8 * 4; //~ ERROR constant
|
|
|
|
pub const D: u8 = 42u8 - (42u8 + 1); //~ ERROR constant
|
|
|
|
pub const E: u8 = [5u8][1]; //~ ERROR constant
|
2016-04-01 02:19:29 -05:00
|
|
|
|
|
|
|
fn main() {
|
2018-01-29 13:47:09 -06:00
|
|
|
let _a = A;
|
|
|
|
let _b = B;
|
|
|
|
let _c = C;
|
|
|
|
let _d = D;
|
|
|
|
let _e = E;
|
2016-05-26 14:09:48 -05:00
|
|
|
let _e = [6u8][1];
|
2016-04-01 02:19:29 -05:00
|
|
|
}
|