summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4382.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-4382.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-4382.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-4382.rs b/src/tools/rustfmt/tests/target/issue-4382.rs
new file mode 100644
index 000000000..740fa9bfe
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-4382.rs
@@ -0,0 +1,10 @@
+pub const NAME_MAX: usize = {
+ #[cfg(target_os = "linux")]
+ {
+ 1024
+ }
+ #[cfg(target_os = "freebsd")]
+ {
+ 255
+ }
+};