Skip to content

Commit f7f4f36

Browse files
committed
Added remove this semicolon test
1 parent 70db57c commit f7f4f36

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)