]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-60075.rs
Auto merge of #60132 - davidtwco:issue-60075, r=estebank
[rust.git] / src / test / ui / issue-60075.rs
1 fn main() {}
2
3 trait T {
4     fn qux() -> Option<usize> {
5         let _ = if true {
6         });
7 //~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `;`
8 //~^^ ERROR expected one of `.`, `;`, `?`, `else`, or an operator, found `}`
9 //~^^^ ERROR 6:11: 6:12: expected identifier, found `;`
10 //~^^^^ ERROR missing `fn`, `type`, or `const` for trait-item declaration
11         Some(4)
12     }