]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/unclosed-braces.rs
Change syntax for TyAlias where clauses
[rust.git] / src / test / ui / parser / unclosed-braces.rs
1 struct S {
2     x: [usize; 3],
3 }
4
5 fn foo() {
6     {
7         {
8             println!("hi");
9         }
10     }
11 }
12
13 fn main() {
14 //~^ NOTE unclosed delimiter
15     {
16         {
17         //~^ NOTE this delimiter might not be properly closed...
18             foo();
19     }
20     //~^ NOTE ...as it matches this but it has different indentation
21 }
22 //~ ERROR this file contains an unclosed delimiter