summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue_4475.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue_4475.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue_4475.rs29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue_4475.rs b/src/tools/rustfmt/tests/target/issue_4475.rs
new file mode 100644
index 000000000..ea6726c5a
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue_4475.rs
@@ -0,0 +1,29 @@
+fn main() {
+ #[cfg(debug_assertions)]
+ {
+ println!("DEBUG");
+ }
+}
+
+fn main() {
+ #[cfg(feature = "foo")]
+ {
+ /*
+ let foo = 0
+ */
+ }
+}
+
+fn main() {
+ #[cfg(feature = "foo")]
+ { /* let foo = 0; */ }
+}
+
+fn main() {
+ #[foo]
+ #[bar]
+ #[baz]
+ {
+ // let foo = 0;
+ }
+}