Added remove this semicolon test
This commit is contained in:
parent
70db57cc59
commit
f7f4f366ac
1 changed files with 10 additions and 0 deletions
|
@ -624,4 +624,14 @@ fn foo() { break; }
|
|||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn missing_semicolon() {
|
||||
check_diagnostics(
|
||||
r#"
|
||||
fn test() -> i32 { 123; }
|
||||
//^^^ Remove this semicolon
|
||||
"#,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue