]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetime-errors/42701_one_named_and_one_anonymous.stderr
Improve SubSupConflict case with one named, one anonymous lifetime parameter #42701
[rust.git] / src / test / ui / lifetime-errors / 42701_one_named_and_one_anonymous.stderr
1 error[E0621]: explicit lifetime required in the type of `x`
2   --> $DIR/42701_one_named_and_one_anonymous.rs:20:9
3    |
4 15 | fn foo2<'a>(a: &'a Foo, x: &i32) -> &'a i32 {
5    |                         - consider changing the type of `x` to `&'a i32`
6 ...
7 20 |         &*x
8    |         ^^^ lifetime `'a` required
9
10 error: aborting due to previous error
11