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