2020-10-24 18:21:40 -05:00
|
|
|
pub const A: i8 = -i8::MIN;
|
2022-09-21 06:05:20 -05:00
|
|
|
//~^ ERROR constant
|
2018-08-26 08:19:34 -05:00
|
|
|
pub const B: i8 = A;
|
2022-11-15 05:06:20 -06:00
|
|
|
//~^ constant
|
2016-04-11 03:41:48 -05:00
|
|
|
pub const C: u8 = A as u8;
|
2022-11-15 05:06:20 -06:00
|
|
|
//~^ constant
|
2016-04-11 03:41:48 -05:00
|
|
|
pub const D: i8 = 50 - A;
|
2022-11-15 05:06:20 -06:00
|
|
|
//~^ constant
|
2016-04-11 03:41:48 -05:00
|
|
|
|
|
|
|
fn main() {
|
2018-01-29 13:47:09 -06:00
|
|
|
let _ = (A, B, C, D);
|
2016-04-11 03:41:48 -05:00
|
|
|
}
|