Added remove this semicolon test

This commit is contained in:
ivan770 2020-12-12 13:50:11 +02:00
parent 70db57cc59
commit f7f4f366ac
No known key found for this signature in database
GPG Key ID: D8C4BD5AE4D9CC4D

View File

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