]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/yeet-expr.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / pretty / yeet-expr.rs
1 // pp-exact
2 #![feature(yeet_expr)]
3
4 fn yeet_no_expr() -> Option<String> { do yeet }
5
6 fn yeet_no_expr_with_semicolon() -> Option<String> { do yeet; }
7
8 fn yeet_with_expr() -> Result<String, i32> { do yeet 1 + 2 }
9
10 fn yeet_with_expr_with_semicolon() -> Result<String, i32> { do yeet 1 + 2; }
11
12 fn main() {}