Added remove this semicolon test
This commit is contained in:
parent
70db57cc59
commit
f7f4f366ac
@ -624,4 +624,14 @@ fn break_outside_of_loop() {
|
|||||||
"#,
|
"#,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn missing_semicolon() {
|
||||||
|
check_diagnostics(
|
||||||
|
r#"
|
||||||
|
fn test() -> i32 { 123; }
|
||||||
|
//^^^ Remove this semicolon
|
||||||
|
"#,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user