mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
36 lines
1.0 KiB
Rust
36 lines
1.0 KiB
Rust
mod a {
|
|
use std::marker::PhantomData;
|
|
|
|
enum Bug {
|
|
V = [PhantomData; { [ () ].len() ].len() as isize,
|
|
//~^ ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR mismatched closing delimiter: `]`
|
|
}
|
|
}
|
|
|
|
mod b {
|
|
enum Bug {
|
|
V = [Vec::new; { [].len() ].len() as isize,
|
|
//~^ ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR type annotations needed
|
|
}
|
|
}
|
|
|
|
mod c {
|
|
enum Bug {
|
|
V = [Vec::new; { [0].len() ].len() as isize,
|
|
//~^ ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR mismatched closing delimiter: `]`
|
|
//~| ERROR type annotations needed
|
|
}
|
|
}
|
|
|
|
fn main() {}
|