2020-12-31 02:25:53 +00:00
|
|
|
error[E0726]: implicit elided lifetime not allowed here
|
|
|
|
--> $DIR/wf-in-foreign-fn-decls-issue-80468.rs:13:16
|
|
|
|
|
|
|
|
|
LL | impl Trait for Ref {}
|
2022-03-10 22:12:35 +00:00
|
|
|
| ^^^ expected lifetime parameter
|
2021-07-20 03:44:35 +00:00
|
|
|
|
|
2022-03-10 22:12:35 +00:00
|
|
|
help: indicate the anonymous lifetime
|
|
|
|
|
|
|
|
|
LL | impl Trait for Ref<'_> {}
|
|
|
|
| ++++
|
2020-12-31 02:25:53 +00:00
|
|
|
|
2024-03-19 20:58:37 +00:00
|
|
|
error[E0277]: the trait bound `Ref<'_>: Trait` is not satisfied
|
|
|
|
--> $DIR/wf-in-foreign-fn-decls-issue-80468.rs:16:21
|
|
|
|
|
|
|
|
|
LL | pub fn repro(_: Wrapper<Ref>);
|
|
|
|
| ^^^^^^^^^^^^ the trait `Trait` is not implemented for `Ref<'_>`
|
|
|
|
|
|
|
|
|
note: required by a bound in `Wrapper`
|
|
|
|
--> $DIR/wf-in-foreign-fn-decls-issue-80468.rs:8:23
|
|
|
|
|
|
|
|
|
LL | pub struct Wrapper<T: Trait>(T);
|
|
|
|
| ^^^^^ required by this bound in `Wrapper`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2020-12-31 02:25:53 +00:00
|
|
|
|
2024-03-19 20:58:37 +00:00
|
|
|
Some errors have detailed explanations: E0277, E0726.
|
|
|
|
For more information about an error, try `rustc --explain E0277`.
|