1
Fork 0
rust/src/test/ui/object-lifetime/object-lifetime-default-ambiguous.stderr

21 lines
780 B
Text
Raw Normal View History

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