diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-27 13:36:30 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-28 11:04:25 +0200 |
| commit | 4eea1a4e5e28a9a84579ee6a52f115375adefde6 (patch) | |
| tree | e1cb8479f2e57b83a38e83060cf33025c08d5cb7 /src/test/ui/const-eval/conditional_array_execution.rs | |
| parent | 4bb9648b27e2c9f9efdb9e29a0d90b229aaff562 (diff) | |
Don't const propagate the body of constants
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, 1 insertions, 2 deletions
diff --git a/src/test/ui/const-eval/conditional_array_execution.rs b/src/test/ui/const-eval/conditional_array_execution.rs index ac555b25afd..99487eb4979 100644 --- a/src/test/ui/const-eval/conditional_array_execution.rs +++ b/src/test/ui/const-eval/conditional_array_execution.rs @@ -13,8 +13,7 @@ const X: u32 = 5; const Y: u32 = 6; const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; -//~^ WARN attempt to subtract with overflow -//~| WARN this constant cannot be used +//~^ WARN this constant cannot be used fn main() { println!("{}", FOO); |
