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