cargo/tests/testsuite/script/rustc_fixtures/frontmatter-whitespace-1.rs
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

12 lines
306 B
Rust

---
//~^ ERROR: invalid preceding whitespace for frontmatter opening
//~^^ ERROR: unclosed frontmatter
---
#![feature(frontmatter)]
// check that whitespaces should not precede the frontmatter opening or close.
// CARGO(pass): not technitcally a frontmatter, so defer to rustc to error
fn main() {}