rust/tests/ui/issues/issue-17740.rs
2025-04-08 23:06:31 +03:00

18 lines
393 B
Rust

struct Foo<'a> {
data: &'a[u8],
}
impl <'a> Foo<'a>{
fn bar(self: &mut Foo) {
//~^ ERROR mismatched `self` parameter type
//~| expected struct `Foo<'a>`
//~| found struct `Foo<'_>`
//~| lifetime mismatch
//~| ERROR mismatched `self` parameter type
//~| expected struct `Foo<'a>`
//~| found struct `Foo<'_>`
//~| lifetime mismatch
}
}
fn main() {}