We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af41489 commit c1d37f0Copy full SHA for c1d37f0
crates/hir_ty/src/diagnostics.rs
@@ -681,6 +681,30 @@ fn baz(s: S) -> i32 {
681
)
682
}
683
684
+ #[test]
685
+ fn missing_record_pat_field_box() {
686
+ check_diagnostics(
687
+ r"
688
+struct S { s: Box<u32> }
689
+fn x(a: S) {
690
+ let S { box s } = a;
691
+}
692
+",
693
+ )
694
+ }
695
+
696
697
+ fn missing_record_pat_field_ref() {
698
699
700
+struct S { s: u32 }
701
702
+ let S { ref s } = a;
703
704
705
706
707
708
#[test]
709
fn break_outside_of_loop() {
710
check_diagnostics(
0 commit comments