diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-03 02:04:20 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-05 20:49:46 +0200 |
| commit | 9cb47de81337482b226cde3a2f59594ed78412d1 (patch) | |
| tree | 8403163950c2db806ded8df1f84583a2e2ef5861 /src/test/ui/const-eval/conditional_array_execution.rs | |
| parent | 5c0d1355f261efd624e0f7755a87e46d954771d3 (diff) | |
| download | rust-9cb47de81337482b226cde3a2f59594ed78412d1.tar.gz rust-9cb47de81337482b226cde3a2f59594ed78412d1.zip | |
Referring to erroneous constants in promoteds must abort the build
Diffstat (limited to 'src/test/ui/const-eval/conditional_array_execution.rs')
| -rw-r--r-- | src/test/ui/const-eval/conditional_array_execution.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/const-eval/conditional_array_execution.rs b/src/test/ui/const-eval/conditional_array_execution.rs index daeeae513d9..055224d2731 100644 --- a/src/test/ui/const-eval/conditional_array_execution.rs +++ b/src/test/ui/const-eval/conditional_array_execution.rs @@ -8,7 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// compile-pass #![warn(const_err)] const X: u32 = 5; @@ -20,4 +19,5 @@ const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; fn main() { println!("{}", FOO); //~^ WARN this expression will panic at runtime + //~| ERROR erroneous constant used } |
