2024-02-15 17:12:05 +00:00
|
|
|
error[E0392]: type parameter `U` is never used
|
|
|
|
--> $DIR/variance-trait-bounds.rs:21:15
|
|
|
|
|
|
|
|
|
LL | enum TestEnum<U,T:Setter<U>> {
|
|
|
|
| ^ 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<U,T:Setter<U>> {
|
|
|
|
| ^ 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<U,T:Getter<U>+Setter<U>> {
|
|
|
|
| ^ 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
|
|
|
|
|
2024-08-22 21:07:29 +00:00
|
|
|
error: [U: +, T: +]
|
2024-03-11 21:28:16 +00:00
|
|
|
--> $DIR/variance-trait-bounds.rs:16:1
|
|
|
|
|
|
|
|
|
LL | struct TestStruct<U,T:Setter<U>> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-08-22 21:07:29 +00:00
|
|
|
error: [U: *, T: +]
|
2024-03-11 21:28:16 +00:00
|
|
|
--> $DIR/variance-trait-bounds.rs:21:1
|
|
|
|
|
|
|
|
|
LL | enum TestEnum<U,T:Setter<U>> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-08-22 21:07:29 +00:00
|
|
|
error: [U: *, T: +]
|
2024-03-11 21:28:16 +00:00
|
|
|
--> $DIR/variance-trait-bounds.rs:27:1
|
|
|
|
|
|
|
|
|
LL | struct TestContraStruct<U,T:Setter<U>> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-08-22 21:07:29 +00:00
|
|
|
error: [U: *, T: +]
|
2024-03-11 21:28:16 +00:00
|
|
|
--> $DIR/variance-trait-bounds.rs:33:1
|
|
|
|
|
|
|
|
|
LL | struct TestBox<U,T:Getter<U>+Setter<U>> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-02-15 17:12:05 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2024-02-15 17:12:05 +00:00
|
|
|
For more information about this error, try `rustc --explain E0392`.
|