diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2018-10-17 18:23:43 -0400 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2018-10-19 09:34:28 -0400 |
| commit | a66ab2bedcc2ac34086d17753f777ffe31dc6349 (patch) | |
| tree | 3d5d005e0bb321cd2dac736160138c5b246bc96d /src/test/ui/consts/const-eval/conditional_array_execution.rs | |
| parent | d5d5e8c5f52ccc5f88f8cf691118e364e64bf75b (diff) | |
| download | rust-a66ab2bedcc2ac34086d17753f777ffe31dc6349.tar.gz rust-a66ab2bedcc2ac34086d17753f777ffe31dc6349.zip | |
skip user-type annotations if they don't have regions
Diffstat (limited to 'src/test/ui/consts/const-eval/conditional_array_execution.rs')
| -rw-r--r-- | src/test/ui/consts/const-eval/conditional_array_execution.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/ui/consts/const-eval/conditional_array_execution.rs b/src/test/ui/consts/const-eval/conditional_array_execution.rs index 9a6ffcd2c67..8142ed0155a 100644 --- a/src/test/ui/consts/const-eval/conditional_array_execution.rs +++ b/src/test/ui/consts/const-eval/conditional_array_execution.rs @@ -14,7 +14,6 @@ const X: u32 = 5; const Y: u32 = 6; const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; //~^ WARN this constant cannot be used -//~| ERROR fn main() { println!("{}", FOO); |
