]> git.lizzy.rs Git - rust.git/blob - src/test/pretty/yeet-expr.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[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() {}