rust/tests/ui/consts/const-err-multi.rs

13 lines
205 B
Rust
Raw Normal View History

pub const A: i8 = -i8::MIN;
2022-09-21 11:05:20 +00:00
//~^ 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() {
2018-01-29 19:47:09 +00:00
let _ = (A, B, C, D);
}