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