diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-50582.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-50582.rs b/src/test/ui/issues/issue-50582.rs new file mode 100644 index 000000000..2d5c93587 --- /dev/null +++ b/src/test/ui/issues/issue-50582.rs @@ -0,0 +1,5 @@ +fn main() { + Vec::<[(); 1 + for x in 0..1 {}]>::new(); + //~^ ERROR cannot add + //~| ERROR `for` is not allowed in a `const` +} |