error[E0392]: type parameter `U` is never used --> $DIR/variance-trait-bounds.rs:21:15 | LL | enum TestEnum> { | ^ unused type parameter | = help: consider removing `U`, referring to it in a field, or using a marker such as `PhantomData` = help: if you intended `U` to be a const parameter, use `const U: /* Type */` instead error[E0392]: type parameter `U` is never used --> $DIR/variance-trait-bounds.rs:27:25 | LL | struct TestContraStruct> { | ^ unused type parameter | = help: consider removing `U`, referring to it in a field, or using a marker such as `PhantomData` = help: if you intended `U` to be a const parameter, use `const U: /* Type */` instead error[E0392]: type parameter `U` is never used --> $DIR/variance-trait-bounds.rs:33:16 | LL | struct TestBox+Setter> { | ^ unused type parameter | = help: consider removing `U`, referring to it in a field, or using a marker such as `PhantomData` = help: if you intended `U` to be a const parameter, use `const U: /* Type */` instead error: [+, +] --> $DIR/variance-trait-bounds.rs:16:1 | LL | struct TestStruct> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: [*, +] --> $DIR/variance-trait-bounds.rs:21:1 | LL | enum TestEnum> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: [*, +] --> $DIR/variance-trait-bounds.rs:27:1 | LL | struct TestContraStruct> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: [*, +] --> $DIR/variance-trait-bounds.rs:33:1 | LL | struct TestBox+Setter> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: aborting due to 7 previous errors For more information about this error, try `rustc --explain E0392`.