rust/tests/ui/parser/unclosed-braces.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
376 B
Rust
Raw Normal View History

struct S {
x: [usize; 3],
}
fn foo() {
{
{
println!("hi");
}
}
}
fn main() {
//~^ NOTE unclosed 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 unclosed delimiter