diff options
Diffstat (limited to 'tests/ui/parser/issues/issue-60075.rs')
-rw-r--r-- | tests/ui/parser/issues/issue-60075.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-60075.rs b/tests/ui/parser/issues/issue-60075.rs new file mode 100644 index 000000000..e89d78ee8 --- /dev/null +++ b/tests/ui/parser/issues/issue-60075.rs @@ -0,0 +1,11 @@ +fn main() {} + +trait T { + fn qux() -> Option<usize> { + let _ = if true { + }); +//~^ ERROR non-item in item list +//~| ERROR mismatched closing delimiter: `)` +//~| ERROR expected one of `.`, `;` + Some(4) + } |