rust/tests/ui/issues/issue-24227.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
222 B
Rust
Raw Normal View History

//@ check-pass
2015-06-19 16:36:54 +00:00
// 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() {}