mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
205 B
Rust
13 lines
205 B
Rust
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);
|
|
}
|