blob: b265bc4c4d84f4c99cf9cf6dedd62820c66026b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
pub const A: i8 = -i8::MIN;
//~^ ERROR constant
pub const B: i8 = A;
//~^ constant
pub const C: u8 = A as u8;
//~^ constant
pub const D: i8 = 50 - A;
//~^ constant
fn main() {
let _ = (A, B, C, D);
}
|