]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-17740.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-17740.rs
CommitLineData
1a4d82fc
JJ
1struct Foo<'a> {
2 data: &'a[u8],
223e47cc
LB
3}
4
1a4d82fc
JJ
5impl <'a> Foo<'a>{
6 fn bar(self: &mut Foo) {
e1599b0c 7 //~^ mismatched `self` parameter type
60c5eb7d
XL
8 //~| expected struct `Foo<'a>`
9 //~| found struct `Foo<'_>`
85aaf69f 10 //~| lifetime mismatch
e1599b0c 11 //~| mismatched `self` parameter type
60c5eb7d
XL
12 //~| expected struct `Foo<'a>`
13 //~| found struct `Foo<'_>`
85aaf69f 14 //~| lifetime mismatch
223e47cc 15 }
223e47cc
LB
16}
17
18fn main() {}