diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-22 01:01:07 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-23 09:51:30 +0200 |
| commit | de511438cd114d5426936c5a0c4313ada9be743b (patch) | |
| tree | dfaa3858417b634a3cf4b2a72bc1d9b1ae330fae /src/test/ui/const-eval/conditional_array_execution.rs | |
| parent | 210d61f05c8c2f9e58f167eb28ab9d8bbef4968b (diff) | |
Promoteds are statics and statics have a place, not just a value
Diffstat (limited to 'src/test/ui/const-eval/conditional_array_execution.rs')
| -rw-r--r-- | src/test/ui/const-eval/conditional_array_execution.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/ui/const-eval/conditional_array_execution.rs b/src/test/ui/const-eval/conditional_array_execution.rs index 99487eb4979..b3f56f27f63 100644 --- a/src/test/ui/const-eval/conditional_array_execution.rs +++ b/src/test/ui/const-eval/conditional_array_execution.rs @@ -17,8 +17,6 @@ const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; fn main() { println!("{}", FOO); - //~^ WARN this expression will panic at runtime - //~| WARN referenced constant - //~| ERROR erroneous constant used + //~^ ERROR erroneous constant used //~| E0080 } |
