summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-eval/pub_const_err_bin.rs
blob: 82eae25121e418a0e9d0aa2d17b4957e283782ff (plain)
1
2
3
4
5
6
7
8
9
10
// check-pass
#![warn(const_err)]

pub const Z: u32 = 0 - 1;
//~^ WARN any use of this value will cause an error
//~| WARN this was previously accepted by the compiler but is being phased out

pub type Foo = [i32; 0 - 1];

fn main() {}