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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
205 B
Rust
Raw Normal View History

pub const A: i8 = -i8::MIN;
2022-09-21 06:05:20 -05: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 13:47:09 -06:00
let _ = (A, B, C, D);
}