diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-27 14:55:06 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-28 11:04:26 +0200 |
| commit | 4d473300a200b26b04335dcd32200878ce8e6e04 (patch) | |
| tree | 1ed2ecc1771e81b16595211ef887d6425d1a8f0b /src/test/ui/const-eval/conditional_array_execution.nll.stderr | |
| parent | 4eea1a4e5e28a9a84579ee6a52f115375adefde6 (diff) | |
Turn the use of erroneous constants into errors again
Diffstat (limited to 'src/test/ui/const-eval/conditional_array_execution.nll.stderr')
| -rw-r--r-- | src/test/ui/const-eval/conditional_array_execution.nll.stderr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/const-eval/conditional_array_execution.nll.stderr b/src/test/ui/const-eval/conditional_array_execution.nll.stderr index 7be9202a2f5..8bc302a2bef 100644 --- a/src/test/ui/const-eval/conditional_array_execution.nll.stderr +++ b/src/test/ui/const-eval/conditional_array_execution.nll.stderr @@ -12,7 +12,7 @@ note: lint level defined here LL | #![warn(const_err)] | ^^^^^^^^^ -warning: referenced constant +warning: referenced constant has errors --> $DIR/conditional_array_execution.rs:19:20 | LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; @@ -27,7 +27,7 @@ warning: this expression will panic at runtime LL | println!("{}", FOO); | ^^^ referenced constant has errors -error[E0080]: referenced constant +error[E0080]: referenced constant has errors --> $DIR/conditional_array_execution.rs:19:5 | LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; @@ -48,7 +48,7 @@ LL | println!("{}", FOO); | = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) -error[E0080]: referenced constant +error[E0080]: referenced constant has errors --> $DIR/conditional_array_execution.rs:19:20 | LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; |
