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:
bors[bot] 2020-12-12 14:29:12 +00:00 committed by GitHub
commit 64a1c9810d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -624,4 +624,14 @@ fn foo() { break; }
"#,
);
}
#[test]
fn missing_semicolon() {
check_diagnostics(
r#"
fn test() -> i32 { 123; }
//^^^ Remove this semicolon
"#,
);
}
}