]>
Commit | Line | Data |
---|---|---|
a1dfa0c6 | 1 | warning: any use of this value will cause an error |
532ac7d7 | 2 | --> $DIR/pub_const_err_bin.rs:4:20 |
0531ce1d XL |
3 | | |
4 | LL | pub const Z: u32 = 0 - 1; | |
532ac7d7 | 5 | | -------------------^^^^^- |
8faf50e0 XL |
6 | | | |
7 | | attempt to subtract with overflow | |
0531ce1d | 8 | | |
74b04a01 | 9 | note: the lint level is defined here |
0731742a | 10 | --> $DIR/pub_const_err_bin.rs:2:9 |
94b46f34 XL |
11 | | |
12 | LL | #![warn(const_err)] | |
13 | | ^^^^^^^^^ | |
0531ce1d | 14 | |
ba9703b0 XL |
15 | warning: 1 warning emitted |
16 |