summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/skip
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/skip')
-rw-r--r--src/tools/rustfmt/tests/target/skip/foo.rs5
-rw-r--r--src/tools/rustfmt/tests/target/skip/main.rs5
-rw-r--r--src/tools/rustfmt/tests/target/skip/preserve_trailing_comment.rs7
3 files changed, 17 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/skip/foo.rs b/src/tools/rustfmt/tests/target/skip/foo.rs
new file mode 100644
index 000000000..776658f8f
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/skip/foo.rs
@@ -0,0 +1,5 @@
+#![rustfmt::skip]
+
+fn
+foo()
+{}
diff --git a/src/tools/rustfmt/tests/target/skip/main.rs b/src/tools/rustfmt/tests/target/skip/main.rs
new file mode 100644
index 000000000..2d33bef92
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/skip/main.rs
@@ -0,0 +1,5 @@
+mod foo;
+
+fn main() {
+ println!("Hello, world!");
+}
diff --git a/src/tools/rustfmt/tests/target/skip/preserve_trailing_comment.rs b/src/tools/rustfmt/tests/target/skip/preserve_trailing_comment.rs
new file mode 100644
index 000000000..f85de3325
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/skip/preserve_trailing_comment.rs
@@ -0,0 +1,7 @@
+#![rustfmt::skip]
+
+fn main() {
+ println!("Hello, world!");
+}
+
+// Trailing Comment