2019-10-11 07:16:09 -05:00
|
|
|
error[E0637]: `&` without an explicit lifetime name cannot be used here
|
|
|
|
--> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:5:37
|
|
|
|
|
|
|
|
|
LL | fn should_error<T>() where T : Into<&u32> {}
|
|
|
|
| ^ explicit lifetime name needed here
|
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifier
|
2020-04-16 23:33:42 -05:00
|
|
|
--> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:9:21
|
2019-10-11 07:16:09 -05:00
|
|
|
|
|
|
|
|
LL | fn foo<'b, L: X<&'b Nested<K>>>();
|
2020-04-16 23:33:42 -05:00
|
|
|
| ^ expected named lifetime parameter
|
2020-04-17 12:46:22 -05:00
|
|
|
|
|
|
|
|
note: these named lifetimes are available to use
|
|
|
|
--> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:9:12
|
|
|
|
|
|
|
|
|
LL | trait X<'a, K: 'a> {
|
|
|
|
| ^^
|
|
|
|
LL | fn foo<'b, L: X<&'b Nested<K>>>();
|
|
|
|
| ^^
|
|
|
|
help: consider using one of the available lifetimes here
|
|
|
|
|
|
|
|
|
LL | fn foo<'b, L: X<'lifetime, &'b Nested<K>>>();
|
|
|
|
| ^^^^^^^^^^
|
2019-10-11 07:16:09 -05:00
|
|
|
|
|
|
|
error[E0106]: missing lifetime specifier
|
2020-04-16 23:33:42 -05:00
|
|
|
--> $DIR/issue-65285-incorrect-explicit-lifetime-name-needed.rs:13:17
|
2019-10-11 07:16:09 -05:00
|
|
|
|
|
|
|
|
LL | fn bar<'b, L: X<&'b Nested<i32>>>(){}
|
2020-04-16 23:33:42 -05:00
|
|
|
| ^ expected named lifetime parameter
|
|
|
|
|
|
2020-04-17 12:46:22 -05:00
|
|
|
help: consider using the `'b` lifetime
|
2020-04-16 23:33:42 -05:00
|
|
|
|
|
|
|
|
LL | fn bar<'b, L: X<'b, &'b Nested<i32>>>(){}
|
|
|
|
| ^^^
|
2019-10-11 07:16:09 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2020-02-07 11:44:31 -06:00
|
|
|
Some errors have detailed explanations: E0106, E0637.
|
|
|
|
For more information about an error, try `rustc --explain E0106`.
|