diff options
author | ivan770 <[email protected]> | 2020-12-12 11:50:11 +0000 |
---|---|---|
committer | ivan770 <[email protected]> | 2020-12-12 11:50:11 +0000 |
commit | f7f4f366aca691ef848824e1738b014cb7028cf0 (patch) | |
tree | 79810e67885fbf9cc9317fd29d3fedba024ed8dc /crates/hir_ty/src/diagnostics.rs | |
parent | 70db57cc5959654004dc8bd044dc65b712e79553 (diff) |
Added remove this semicolon test
Diffstat (limited to 'crates/hir_ty/src/diagnostics.rs')
-rw-r--r-- | crates/hir_ty/src/diagnostics.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/hir_ty/src/diagnostics.rs b/crates/hir_ty/src/diagnostics.rs index e59487e54..1c72f766e 100644 --- a/crates/hir_ty/src/diagnostics.rs +++ b/crates/hir_ty/src/diagnostics.rs | |||
@@ -624,4 +624,14 @@ fn foo() { break; } | |||
624 | "#, | 624 | "#, |
625 | ); | 625 | ); |
626 | } | 626 | } |
627 | |||
628 | #[test] | ||
629 | fn missing_semicolon() { | ||
630 | check_diagnostics( | ||
631 | r#" | ||
632 | fn test() -> i32 { 123; } | ||
633 | //^^^ Remove this semicolon | ||
634 | "#, | ||
635 | ); | ||
636 | } | ||
627 | } | 637 | } |