mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
5 lines
135 B
Rust
5 lines
135 B
Rust
fn main() {
|
|
Vec::<[(); 1 + for x in 0..1 {}]>::new();
|
|
//~^ ERROR cannot add
|
|
//~| ERROR `for` is not allowed in a `const`
|
|
}
|