diff options
| author | bors <bors@rust-lang.org> | 2018-07-24 13:10:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-07-24 13:10:06 +0000 |
| commit | 6a3db033ad05f156281d50ee489d727ee0e5d767 (patch) | |
| tree | 7c93b7fe78be90b0163bfc8e2de40c2220b9c613 /src/test/ui/const-eval/conditional_array_execution.rs | |
| parent | a1e6bcb2085cba3d5e549ba3b175f99487c21639 (diff) | |
| parent | cbd42749efa3555b51463497869af9f829480142 (diff) | |
Auto merge of #52597 - oli-obk:promotion_simplify, r=nagisa
Promoteds are statics and statics have a place, not just a value r? @eddyb This makes everything around promoteds a little simpler
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 } |
