rust/tests/ui/traits/trait-upcasting/multiple_supertrait_upcastable.stderr
2024-09-25 13:26:48 +02:00

15 lines
383 B
Plaintext

error: `C` is dyn-compatible and has multiple supertraits
--> $DIR/multiple_supertrait_upcastable.rs:7:1
|
LL | trait C: A + B {}
| ^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> $DIR/multiple_supertrait_upcastable.rs:2:9
|
LL | #![deny(multiple_supertrait_upcastable)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error