about summary refs log tree commit diff
path: root/tests/ui/issues/issue-24227.rs
blob: acc82bdabb5e7ae6af16ced6f2855d05af7ac975 (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() {}