blob: bd262b69da81a73feb2e6671bdfa59cf3eb7f306 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
warning: any use of this value will cause an error
--> $DIR/pub_const_err.rs:6:20
|
LL | pub const Z: u32 = 0 - 1;
| -------------------^^^^^-
| |
| attempt to subtract with overflow
|
note: lint level defined here
--> $DIR/pub_const_err.rs:2:9
|
LL | #![warn(const_err)]
| ^^^^^^^^^
|