rust/tests/ui/frontmatter/frontmatter-after-tokens.rs

11 lines
209 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.
fn main() {}