]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | // check-pass |
62682a34 SL |
2 | // This resulted in an ICE. Test for future-proofing |
3 | // Issue #24227 | |
4 | ||
5 | #![allow(unused)] | |
223e47cc | 6 | |
1a4d82fc | 7 | struct Foo<'a> { |
62682a34 | 8 | x: &'a u8 |
223e47cc LB |
9 | } |
10 | ||
62682a34 SL |
11 | impl<'a> Foo<'a> { |
12 | fn foo() { | |
13 | let mut tmp: Self; | |
14 | } | |
15 | ||
223e47cc | 16 | } |
62682a34 SL |
17 | |
18 | fn main() {} |