summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/use_try_shorthand/true.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/configs/use_try_shorthand/true.rs')
-rw-r--r--src/tools/rustfmt/tests/target/configs/use_try_shorthand/true.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/configs/use_try_shorthand/true.rs b/src/tools/rustfmt/tests/target/configs/use_try_shorthand/true.rs
new file mode 100644
index 000000000..d3aa03579
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/configs/use_try_shorthand/true.rs
@@ -0,0 +1,6 @@
+// rustfmt-use_try_shorthand: true
+// Use try! shorthand
+
+fn main() {
+ let lorem = ipsum.map(|dolor| dolor.sit())?;
+}