rust/src/test/ui/parser/unclosed-braces.rs

22 lines
378 B
Rust

struct S {
x: [usize; 3],
}
fn foo() {
{
{
println!("hi");
}
}
}
fn main() {
//~^ NOTE un-closed delimiter
{
{
//~^ NOTE this delimiter might not be properly closed...
foo();
}
//~^ NOTE ...as it matches this but it has different indentation
}
//~ ERROR this file contains an un-closed delimiter