Skip to content

Commit

Permalink
test(fmt): Verify frontmatter is not stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Mar 10, 2025
1 parent f3b945a commit c002b34
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/tools/rustfmt/tests/source/frontmatter.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


--- identifier
[dependencies]
regex = "1"

---

#![feature(frontmatter)]

fn main() {}
9 changes: 9 additions & 0 deletions src/tools/rustfmt/tests/target/frontmatter.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- identifier
[dependencies]
regex = "1"

---

#![feature(frontmatter)]

fn main() {}

0 comments on commit c002b34

Please sign in to comment.