diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/rustfmt/tests/source/unsafe-mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/unsafe-mod.rs b/src/tools/rustfmt/tests/source/unsafe-mod.rs new file mode 100644 index 000000000..9996b0627 --- /dev/null +++ b/src/tools/rustfmt/tests/source/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++" { } |