Skip to content

Commit 64a1c98

Browse files
bors[bot]ivan770
andauthored
Merge #6841
6841: Added "Remove this semicolon" test r=matklad a=ivan770 Closes #6769 (comment) Co-authored-by: ivan770 <[email protected]>
2 parents 70db57c + f7f4f36 commit 64a1c98

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

crates/hir_ty/src/diagnostics.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,4 +624,14 @@ fn foo() { break; }
624624
"#,
625625
);
626626
}
627+
628+
#[test]
629+
fn missing_semicolon() {
630+
check_diagnostics(
631+
r#"
632+
fn test() -> i32 { 123; }
633+
//^^^ Remove this semicolon
634+
"#,
635+
);
636+
}
627637
}

0 commit comments

Comments
 (0)