Point at return type obligations instead of at fn ident

This commit is contained in:
Esteban Küber 2020-01-29 14:16:31 -08:00
parent 972ae5afe5
commit 8d48597b76
2 changed files with 5 additions and 5 deletions

View file

@ -1,8 +1,8 @@
error: non-defining opaque type use in defining scope
--> $DIR/generic_duplicate_lifetime_param.rs:7:4
--> $DIR/generic_duplicate_lifetime_param.rs:7:26
|
LL | fn one<'a>(t: &'a ()) -> Two<'a, 'a> {
| ^^^
| ^^^^^^^^^^^
|
note: lifetime used multiple times
--> $DIR/generic_duplicate_lifetime_param.rs:5:10