]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-32709.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / issues / issue-32709.rs
1 // Make sure that the span of try shorthand does not include the trailing
2 // semicolon;
3 fn a() -> Result<i32, ()> {
4     Err(5)?; //~ ERROR
5     Ok(1)
6 }
7
8 fn main() {}