File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -691,3 +691,24 @@ mod issue_13092 {
691691 }
692692 }
693693}
694+
695+ mod crash_check_13128 {
696+ struct A;
697+
698+ impl A {
699+ fn a() {
700+ struct B;
701+
702+ // pushes a NoCheck
703+ impl Iterator for &B {
704+ // Pops the NoCheck
705+ type Item = A;
706+
707+ // Lints A -> Self
708+ fn next(&mut self) -> Option<A> {
709+ Some(A)
710+ }
711+ }
712+ }
713+ }
714+ }
Original file line number Diff line number Diff line change @@ -691,3 +691,24 @@ mod issue_13092 {
691691 }
692692 }
693693}
694+
695+ mod crash_check_13128 {
696+ struct A ;
697+
698+ impl A {
699+ fn a ( ) {
700+ struct B ;
701+
702+ // pushes a NoCheck
703+ impl Iterator for & B {
704+ // Pops the NoCheck
705+ type Item = A ;
706+
707+ // Lints A -> Self
708+ fn next ( & mut self ) -> Option < A > {
709+ Some ( A )
710+ }
711+ }
712+ }
713+ }
714+ }
You can’t perform that action at this time.
0 commit comments