rust/tests/target/try-conversion.rs
2017-06-13 14:42:54 +12:00

27 lines
474 B
Rust

// rustfmt-use_try_shorthand: true
fn main() {
let x = some_expr()?;
let y = a.very
.loooooooooooooooooooooooooooooooooooooong()
.chain()
.inside()
.weeeeeeeeeeeeeee()?
.test()
.0
.x;
}
fn test() {
a?
}
fn issue1291() {
fs::create_dir_all(&gitfiledir).chain_err(|| {
format!(
"failed to create the {} submodule directory for the workarea",
name
)
})?;
}