diff options
Diffstat (limited to 'src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs')
-rw-r--r-- | src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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 index 000000000..de7f8b4a5 --- /dev/null +++ b/src/tools/rustfmt/tests/target/configs/use_try_shorthand/false.rs @@ -0,0 +1,6 @@ +// rustfmt-use_try_shorthand: false +// Use try! shorthand + +fn main() { + let lorem = try!(ipsum.map(|dolor| dolor.sit())); +} |