1 warning: this constant cannot be used
2 --> $DIR/pub_const_err_bin.rs:14:1
4 LL | pub const Z: u32 = 0 - 1;
5 | ^^^^^^^^^^^^^^^^^^^-----^
7 | attempt to subtract with overflow
9 note: lint level defined here
10 --> $DIR/pub_const_err_bin.rs:12:9
12 LL | #![warn(const_err)]
15 warning: attempt to subtract with overflow
16 --> $DIR/pub_const_err_bin.rs:17:22
18 LL | pub type Foo = [i32; 0 - 1];
21 warning: this array length cannot be used
22 --> $DIR/pub_const_err_bin.rs:17:22
24 LL | pub type Foo = [i32; 0 - 1];
25 | ^^^^^ attempt to subtract with overflow