Ed Page 57c97cc190 test(script): Switch frontmatter tests to end-to-end
This will make it easier to validate error improvements I'm working on
as well as make it easier to update from rust-lang/rust
2025-08-29 16:11:59 -05:00

17 lines
499 B
Rust

----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: `}`