2020-01-15 15:49:54 -08:00
|
|
|
error[E0308]: mismatched types
|
2024-10-09 23:31:01 +02:00
|
|
|
--> $DIR/dyn-incompatible-trait-in-return-position-impl-trait.rs:36:5
|
2020-01-15 15:49:54 -08:00
|
|
|
|
|
2024-10-09 23:31:01 +02:00
|
|
|
LL | fn can() -> impl DynIncompatible {
|
|
|
|
|
| -------------------- expected `A` because of return type
|
2022-02-14 16:10:22 +00:00
|
|
|
...
|
2020-01-15 15:49:54 -08:00
|
|
|
LL | B
|
2023-01-02 18:00:33 -08:00
|
|
|
| ^ expected `A`, found `B`
|
2020-01-15 15:49:54 -08:00
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2024-10-09 23:31:01 +02:00
|
|
|
--> $DIR/dyn-incompatible-trait-in-return-position-impl-trait.rs:43:5
|
2020-01-15 15:49:54 -08:00
|
|
|
|
|
2024-10-09 23:31:01 +02:00
|
|
|
LL | fn cat() -> impl DynCompatible {
|
|
|
|
|
| ------------------ expected `A` because of return type
|
2022-02-14 16:10:22 +00:00
|
|
|
...
|
2020-01-15 15:49:54 -08:00
|
|
|
LL | B
|
2023-01-02 18:00:33 -08:00
|
|
|
| ^ expected `A`, found `B`
|
2020-01-15 15:49:54 -08:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|