diff options
| author | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-01-27 17:15:40 +0100 |
|---|---|---|
| committer | Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de> | 2018-03-08 08:34:12 +0100 |
| commit | 5b247b9bbe7252db2d22d3ec4be172c73f1f94e9 (patch) | |
| tree | c0d1a8f54cf9294314e8e410d4b477aa0ca33736 /src/test/ui/const-eval | |
| parent | df6b40e342879169962295e27f1f878998f22bc3 (diff) | |
Report errors in statics during collecting instead of translating
Diffstat (limited to 'src/test/ui/const-eval')
| -rw-r--r-- | src/test/ui/const-eval/index_out_of_bound.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/ui/const-eval/index_out_of_bound.rs b/src/test/ui/const-eval/index_out_of_bound.rs index 0109f72aa1d..632804f2fd3 100644 --- a/src/test/ui/const-eval/index_out_of_bound.rs +++ b/src/test/ui/const-eval/index_out_of_bound.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -static FOO: i32 = [][0]; //~ ERROR E0080 +static FOO: i32 = [][0]; +//~^ ERROR E0080 +//~| ERROR E0080 fn main() {} |
