summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-24227.rs
blob: 12816c235f8d812683c5593ca5daf965d0ae4109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// check-pass
// This resulted in an ICE. Test for future-proofing
// Issue #24227

#![allow(unused)]

struct Foo<'a> {
    x: &'a u8
}

impl<'a> Foo<'a> {
    fn foo() {
        let mut tmp: Self;
    }

}

fn main() {}