summary refs log tree commit diff
path: root/src/test/ui/issues/issue-60075.rs
blob: 5788716a52629bba22af262129cb35db60dc6360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {}

trait T {
    fn qux() -> Option<usize> {
        let _ = if true {
        });
//~^ ERROR expected one of `async`, `const`, `extern`, `fn`, `type`, `unsafe`, or `}`, found `;`
//~^^ ERROR expected one of `.`, `;`, `?`, `else`, or an operator, found `}`
//~^^^ ERROR 6:11: 6:12: expected identifier, found `;`
//~^^^^ ERROR missing `fn`, `type`, or `const` for trait-item declaration
        Some(4)
    }