rust/src/test/ui/issues/issue-24227.rs
2019-07-03 06:30:28 +09:00

19 lines
258 B
Rust

// build-pass (FIXME(62277): could be 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() {}