diff options
| author | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2018-03-06 12:43:02 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2018-03-08 08:35:39 +0100 |
| commit | b5ace9a906d0a445420a0ff16f77ce967722ddc6 (patch) | |
| tree | de379168cd41e525503f37c9196be4433057c9e2 /src/test/ui/const-eval/conditional_array_execution.rs | |
| parent | edc5f7343338ddbbc2bae94be585cd821dbe8118 (diff) | |
Unify the const folding errors
before they differed depending on whether optimizations were on or not
Diffstat (limited to 'src/test/ui/const-eval/conditional_array_execution.rs')
| -rw-r--r-- | src/test/ui/const-eval/conditional_array_execution.rs | 3 |
1 files changed, 2 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 41ceb609df5..324bcf60e8f 100644 --- a/src/test/ui/const-eval/conditional_array_execution.rs +++ b/src/test/ui/const-eval/conditional_array_execution.rs @@ -10,7 +10,8 @@ const X: u32 = 5; const Y: u32 = 6; -const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; //~ E0080 +const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; +//~^ WARN attempt to subtract with overflow fn main() { println!("{}", FOO); //~ E0080 |
