mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
18 lines
222 B
Rust
18 lines
222 B
Rust
//@ 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() {}
|