2020-03-10 18:24:34 -05:00
|
|
|
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: `]`
|
|
|
|
}
|
|
|
|
|
2023-02-28 01:55:19 -06:00
|
|
|
fn main() {} //~ ERROR this file contains an unclosed delimiter
|