mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
19 lines
408 B
Rust
19 lines
408 B
Rust
// rustfmt-use_try_shorthand: true
|
|
|
|
fn main() {
|
|
let x = try!(some_expr());
|
|
|
|
let y = try!(a.very.loooooooooooooooooooooooooooooooooooooong().chain().inside().weeeeeeeeeeeeeee()).test().0.x;
|
|
}
|
|
|
|
fn test() {
|
|
a?
|
|
}
|
|
|
|
fn issue1291() {
|
|
try!(fs::create_dir_all(&gitfiledir).chain_err(|| {
|
|
format!("failed to create the {} submodule directory for the workarea",
|
|
name)
|
|
}));
|
|
}
|