about summary refs log tree commit diff
path: root/tests/ui/frontmatter/unclosed-3.rs
blob: 75f3fbda675ce7e861648a7eb461ecb7c95474e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
----cargo
//~^ ERROR: frontmatter close does not match the opening

//@ compile-flags: --crate-type lib

// Unfortunate recovery situation. Not really preventable with improving the
// recovery strategy, but this type of code is rare enough already.

 #![feature(frontmatter)]

fn foo(x: i32) -> i32 {
    ---x
    //~^ ERROR: invalid preceding whitespace for frontmatter close
    //~| ERROR: extra characters after frontmatter close are not allowed
}
//~^ ERROR: unexpected closing delimiter: `}`