diff --git a/rustfmt-core/rustfmt-lib/tests/target/skip/foo.rs b/rustfmt-core/rustfmt-lib/tests/target/skip/foo.rs new file mode 100644 index 00000000000..776658f8fe5 --- /dev/null +++ b/rustfmt-core/rustfmt-lib/tests/target/skip/foo.rs @@ -0,0 +1,5 @@ +#![rustfmt::skip] + +fn +foo() +{} diff --git a/rustfmt-core/rustfmt-lib/tests/target/skip/main.rs b/rustfmt-core/rustfmt-lib/tests/target/skip/main.rs new file mode 100644 index 00000000000..e8d926e64ee --- /dev/null +++ b/rustfmt-core/rustfmt-lib/tests/target/skip/main.rs @@ -0,0 +1,6 @@ +// rustfmt-recursive: true +mod foo; + +fn main() { + println!("Hello, world!"); +}