summaryrefslogtreecommitdiffstats
path: root/tests/pretty/attr-tokens-raw-ident.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pretty/attr-tokens-raw-ident.rs')
-rw-r--r--tests/pretty/attr-tokens-raw-ident.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pretty/attr-tokens-raw-ident.rs b/tests/pretty/attr-tokens-raw-ident.rs
new file mode 100644
index 000000000..8486342b0
--- /dev/null
+++ b/tests/pretty/attr-tokens-raw-ident.rs
@@ -0,0 +1,7 @@
+// Keywords in attribute paths are printed as raw idents,
+// but keywords in attribute arguments are not.
+
+// pp-exact
+
+#[rustfmt::r#final(final)]
+fn main() {}