]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-60075.rs
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / 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     }