]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50582.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-50582.rs
1 fn main() {
2     Vec::<[(); 1 + for x in 0..1 {}]>::new();
3     //~^ ERROR cannot add
4     //~| ERROR `for` is not allowed in a `const`
5 }