]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/unclosed-braces.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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