mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 20:13:47 +00:00
16 lines
254 B
Rust
16 lines
254 B
Rust
|
// This test fails if #104478 is fixed before #104477.
|
||
|
|
||
|
//@ check-pass
|
||
|
|
||
|
struct Printer<'a, 'b>(&'a (), &'b ());
|
||
|
|
||
|
impl Printer<'_, '_> {
|
||
|
fn test(self) {
|
||
|
let clo = |_: &'_ Self| {};
|
||
|
clo(&self);
|
||
|
clo(&self);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() {}
|