summaryrefslogtreecommitdiffstats
path: root/tests/pretty/trait-inner-attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pretty/trait-inner-attr.rs')
-rw-r--r--tests/pretty/trait-inner-attr.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pretty/trait-inner-attr.rs b/tests/pretty/trait-inner-attr.rs
new file mode 100644
index 000000000..6cb0e4136
--- /dev/null
+++ b/tests/pretty/trait-inner-attr.rs
@@ -0,0 +1,7 @@
+// pp-exact
+
+trait Foo {
+ #![allow(bar)]
+}
+
+fn main() {}