diff options
Diffstat (limited to 'src/tools/rustfmt/tests/target/unsafe-mod.rs')
-rw-r--r-- | src/tools/rustfmt/tests/target/unsafe-mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/unsafe-mod.rs b/src/tools/rustfmt/tests/target/unsafe-mod.rs new file mode 100644 index 000000000..05ba2f54f --- /dev/null +++ b/src/tools/rustfmt/tests/target/unsafe-mod.rs @@ -0,0 +1,7 @@ +// These are supported by rustc syntactically but not semantically. + +#[cfg(any())] +unsafe mod m {} + +#[cfg(any())] +unsafe extern "C++" {} |