summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/paren.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/paren.rs')
-rw-r--r--src/tools/rustfmt/tests/target/paren.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/paren.rs b/src/tools/rustfmt/tests/target/paren.rs
new file mode 100644
index 000000000..f7714d85d
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/paren.rs
@@ -0,0 +1,6 @@
+fn main() {
+ let x = (1);
+ let y = (/* comment */(2));
+ let z = ((3)/* comment */);
+ let a = (4/* comment */);
+}