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

16 lines
377 B
Rust

----cargo
//~^ ERROR: unclosed frontmatter
//~| ERROR: frontmatters are experimental
//@ compile-flags: --crate-type lib
// Leading whitespace on the feature line prevents recovery. However
// the dashes quoted will not be used for recovery and the entire file
// should be treated as within the frontmatter block.
#![feature(frontmatter)]
fn foo() -> &str {
"----"
}