mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-05 13:13:40 +00:00
19 lines
381 B
Rust
19 lines
381 B
Rust
struct Foo<'a> {
|
|
data: &'a[u8],
|
|
}
|
|
|
|
impl <'a> Foo<'a>{
|
|
fn bar(self: &mut Foo) {
|
|
//~^ mismatched `self` parameter type
|
|
//~| expected struct `Foo<'a>`
|
|
//~| found struct `Foo<'_>`
|
|
//~| lifetime mismatch
|
|
//~| mismatched `self` parameter type
|
|
//~| expected struct `Foo<'a>`
|
|
//~| found struct `Foo<'_>`
|
|
//~| lifetime mismatch
|
|
}
|
|
}
|
|
|
|
fn main() {}
|