Weaken test compile-fail/lifetime-inference-give-expl-lifetime-param.

This commit is contained in:
Jeffrey Seyfried 2016-07-22 09:44:09 -07:00
parent 0042c1a620
commit a279f2f62d

View File

@ -49,7 +49,8 @@ struct Baz<'x> {
impl<'a> Baz<'a> {
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
//~^ ERROR E0312
}