Weaken test compile-fail/lifetime-inference-give-expl-lifetime-param
.
This commit is contained in:
parent
0042c1a620
commit
a279f2f62d
@ -49,7 +49,8 @@ struct Baz<'x> {
|
|||||||
|
|
||||||
impl<'a> Baz<'a> {
|
impl<'a> Baz<'a> {
|
||||||
fn baz2<'b>(&self, x: &isize) -> (&'b isize, &'b isize) {
|
fn baz2<'b>(&self, x: &isize) -> (&'b isize, &'b isize) {
|
||||||
//~^ HELP consider using an explicit lifetime parameter as shown: fn baz2<'b>(&self, x: &'a isize) -> (&'a isize, &'a isize)
|
//~^ HELP consider using an explicit lifetime parameter as shown: fn baz2<'b>(&self, x: &'
|
||||||
|
// FIXME #35038: The above suggestion is different on Linux and Mac.
|
||||||
(self.bar, x) //~ ERROR E0312
|
(self.bar, x) //~ ERROR E0312
|
||||||
//~^ ERROR E0312
|
//~^ ERROR E0312
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user