rust/tests/target/try-conversion.rs

28 lines
474 B
Rust
Raw Normal View History

// rustfmt-use_try_shorthand: true
fn main() {
let x = some_expr()?;
let y = a.very
2016-05-12 14:50:43 -05:00
.loooooooooooooooooooooooooooooooooooooong()
.chain()
.inside()
.weeeeeeeeeeeeeee()?
.test()
.0
.x;
}
fn test() {
a?
}
fn issue1291() {
2017-06-11 23:01:41 -05:00
fs::create_dir_all(&gitfiledir).chain_err(|| {
format!(
"failed to create the {} submodule directory for the workarea",
name
)
})?;
}