mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Merge #6841
6841: Added "Remove this semicolon" test r=matklad a=ivan770 Closes https://github.com/rust-analyzer/rust-analyzer/pull/6769#discussion_r540150066 Co-authored-by: ivan770 <leshenko.ivan770@gmail.com>
This commit is contained in:
commit
64a1c9810d
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…
Reference in a new issue