Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions tests/ui/frontmatter/space-in-infostring.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- cargo clippy
//~^ ERROR: invalid infostring for frontmatter
---

// infostrings cannot have spaces

#![feature(frontmatter)]

fn main() {}
10 changes: 10 additions & 0 deletions tests/ui/frontmatter/space-in-infostring.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
error: invalid infostring for frontmatter
--> $DIR/space-in-infostring.rs:1:4
|
LL | --- cargo clippy
| ^^^^^^^^^^^^^
|
= note: frontmatter infostrings must be a single identifier immediately following the opening

error: aborting due to 1 previous error

Loading