mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 16:15:03 +00:00
23 lines
781 B
Plaintext
23 lines
781 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/higher-ranked-upcasting-ub.rs:22:5
|
|
|
|
|
LL | x
|
|
| ^ one type is more general than the other
|
|
|
|
|
= note: expected existential trait ref `for<'a> Supertrait<'a, 'a>`
|
|
found existential trait ref `for<'a, 'b> Supertrait<'a, 'b>`
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/higher-ranked-upcasting-ub.rs:22:5
|
|
|
|
|
LL | x
|
|
| ^ one type is more general than the other
|
|
|
|
|
= note: expected existential trait ref `for<'a> Supertrait<'a, 'a>`
|
|
found existential trait ref `for<'a, 'b> Supertrait<'a, 'b>`
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|