mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
24 lines
513 B
Rust
24 lines
513 B
Rust
mod a {
|
|
use std::marker::PhantomData;
|
|
|
|
enum Bug {
|
|
V = [PhantomData; { [ () ].len() ].len() as isize,
|
|
//~^ ERROR mismatched closing delimiter: `]`
|
|
}
|
|
}
|
|
|
|
mod b {
|
|
enum Bug {
|
|
V = [Vec::new; { [].len() ].len() as isize,
|
|
//~^ ERROR mismatched closing delimiter: `]`
|
|
}
|
|
}
|
|
|
|
mod c {
|
|
enum Bug {
|
|
V = [Vec::new; { [0].len() ].len() as isize,
|
|
//~^ ERROR mismatched closing delimiter: `]`
|
|
}
|
|
|
|
fn main() {} //~ ERROR this file contains an unclosed delimiter
|