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

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

19 lines
381 B
Rust
Raw Normal View History

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() {}