summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3585/extern_crate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-3585/extern_crate.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-3585/extern_crate.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-3585/extern_crate.rs b/src/tools/rustfmt/tests/target/issue-3585/extern_crate.rs
new file mode 100644
index 000000000..dc7c9e024
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-3585/extern_crate.rs
@@ -0,0 +1,10 @@
+// rustfmt-inline_attribute_width: 100
+
+#[macro_use] extern crate static_assertions;
+
+#[cfg(unix)] extern crate static_assertions;
+
+// a comment before the attribute
+#[macro_use]
+// some comment after
+extern crate static_assertions;