rust/src/test/ui/const-eval/pub_const_err.stderr
Oliver Schneider b5ace9a906
Unify the const folding errors
before they differed depending on whether optimizations were on or not
2018-03-08 08:35:39 +01:00

14 lines
302 B
Text

error: attempt to subtract with overflow
--> $DIR/pub_const_err.rs:15:20
|
LL | pub const Z: u32 = 0 - 1;
| ^^^^^
|
note: lint level defined here
--> $DIR/pub_const_err.rs:11:9
|
LL | #![deny(const_err)]
| ^^^^^^^^^
error: aborting due to previous error