cargo/tests/testsuite/script/rustc_fixtures/frontmatter-after-tokens.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
263 B
Rust

#![feature(frontmatter)]
---
//~^ ERROR: expected item, found `-`
// FIXME(frontmatter): make this diagnostic better
---
// frontmatters must be at the start of a file. This test ensures that.
// CARGO(pass): can't detect this, deferring to rustc
fn main() {}