Skip to content

Commit f502dce

Browse files
committed
Add regression test for issue #103476, fixed in edition 2024
1 parent 427d915 commit f502dce

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// issue-103476
2+
//@ compile-flags: -Zlint-mir -Zunstable-options
3+
//@ edition: 2024
4+
//@ check-pass
5+
6+
#![feature(let_chains)]
7+
#![allow(irrefutable_let_patterns)]
8+
9+
structPd;
10+
11+
implPd{
12+
fnit(&self) -> It{
13+
todo!()
14+
}
15+
}
16+
17+
pubstructIt<'a>(Box<dynTr<'a>>);
18+
19+
traitTr<'a>{}
20+
21+
fnf(m:Option<Pd>){
22+
ifletSome(n) = m && let it = n.it(){};
23+
}
24+
25+
fnmain(){}

0 commit comments

Comments
 (0)