Point at return type obligations instead of at fn ident
This commit is contained in:
parent
972ae5afe5
commit
8d48597b76
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue