]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / rustfmt / tests / target / configs / use_try_shorthand / false.rs
diff --git a/src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs b/src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs
new file mode 100644 (file)
index 0000000..de7f8b4
--- /dev/null
@@ -0,0 +1,6 @@
+// rustfmt-use_try_shorthand: false
+// Use try! shorthand
+
+fn main() {
+    let lorem = try!(ipsum.map(|dolor| dolor.sit()));
+}