summary refs log tree commit diff
path: root/src/test/ui/consts/const-err-multi.rs
blob: fa3ad832c60e284bf47d6372a05e4e34bf8b3a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![deny(const_err)]

pub const A: i8 = -std::i8::MIN;
//~^ ERROR const_err
pub const B: i8 = A;
//~^ ERROR const_err
pub const C: u8 = A as u8;
//~^ ERROR const_err
pub const D: i8 = 50 - A;
//~^ ERROR const_err

fn main() {
    let _ = (A, B, C, D);
}