rust/tests/ui/object-lifetime/object-lifetime-default-ambiguous.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
848 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0228]: the lifetime bound for this object type cannot be deduced from context; please supply an explicit bound
2019-05-28 18:46:13 +00:00
--> $DIR/object-lifetime-default-ambiguous.rs:23:28
2018-08-08 12:28:26 +00:00
|
2019-05-28 18:46:13 +00:00
LL | fn a<'a,'b>(t: Ref2<'a,'b, dyn Test>) {
| ^^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0228]: the lifetime bound for this object type cannot be deduced from context; please supply an explicit bound
2018-12-25 15:56:47 +00:00
--> $DIR/object-lifetime-default-ambiguous.rs:27:14
2018-08-08 12:28:26 +00:00
|
2019-05-28 18:46:13 +00:00
LL | fn b(t: Ref2<dyn Test>) {
| ^^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0228]: the lifetime bound for this object type cannot be deduced from context; please supply an explicit bound
2018-12-25 15:56:47 +00:00
--> $DIR/object-lifetime-default-ambiguous.rs:43:15
2018-08-08 12:28:26 +00:00
|
2019-05-28 18:46:13 +00:00
LL | fn f(t: &Ref2<dyn Test>) {
| ^^^^^^^^
2018-08-08 12:28:26 +00:00
error: aborting due to 3 previous errors
2020-05-12 00:28:24 +00:00
For more information about this error, try `rustc --explain E0228`.