2024-02-29 14:24:09 -06:00
|
|
|
error[E0277]: the trait bound `(): Sub` is not satisfied
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:10:22
|
|
|
|
|
|
|
|
|
LL | impl BoundOnSelf for () {}
|
|
|
|
| ^^ the trait `Sub` is not implemented for `()`
|
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:7:1
|
|
|
|
|
|
|
|
|
LL | trait Sub: Super<Assoc = u16> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: required by a bound in `BoundOnSelf`
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:9:20
|
|
|
|
|
|
|
|
|
LL | trait BoundOnSelf: Sub {}
|
|
|
|
| ^^^ required by this bound in `BoundOnSelf`
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `(): Sub` is not satisfied
|
2024-03-01 10:19:16 -06:00
|
|
|
--> $DIR/super-assoc-mismatch.rs:14:27
|
2024-02-29 14:24:09 -06:00
|
|
|
|
|
|
|
|
LL | impl BoundOnParam<()> for () {}
|
|
|
|
| ^^ the trait `Sub` is not implemented for `()`
|
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:7:1
|
|
|
|
|
|
|
|
|
LL | trait Sub: Super<Assoc = u16> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: required by a bound in `BoundOnParam`
|
2024-03-01 10:19:16 -06:00
|
|
|
--> $DIR/super-assoc-mismatch.rs:13:23
|
2024-02-29 14:24:09 -06:00
|
|
|
|
|
|
|
|
LL | trait BoundOnParam<T: Sub> {}
|
|
|
|
| ^^^ required by this bound in `BoundOnParam`
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `(): Sub` is not satisfied
|
2024-03-01 10:19:16 -06:00
|
|
|
--> $DIR/super-assoc-mismatch.rs:21:18
|
2024-02-29 14:24:09 -06:00
|
|
|
|
|
|
|
|
LL | type Assoc = ();
|
|
|
|
| ^^ the trait `Sub` is not implemented for `()`
|
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:7:1
|
|
|
|
|
|
|
|
|
LL | trait Sub: Super<Assoc = u16> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: required by a bound in `BoundOnAssoc::Assoc`
|
2024-03-01 10:19:16 -06:00
|
|
|
--> $DIR/super-assoc-mismatch.rs:18:17
|
2024-02-29 14:24:09 -06:00
|
|
|
|
|
|
|
|
LL | type Assoc: Sub;
|
|
|
|
| ^^^ required by this bound in `BoundOnAssoc::Assoc`
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `(): Sub` is not satisfied
|
2024-03-01 10:19:16 -06:00
|
|
|
--> $DIR/super-assoc-mismatch.rs:29:21
|
2024-02-29 14:24:09 -06:00
|
|
|
|
|
|
|
|
LL | type Assoc<T> = ();
|
2024-10-24 16:14:17 -05:00
|
|
|
| ^^ the trait `Sub` is not implemented for `()`
|
2024-02-29 14:24:09 -06:00
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:7:1
|
|
|
|
|
|
|
|
|
LL | trait Sub: Super<Assoc = u16> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: required by a bound in `BoundOnGat`
|
2024-03-01 10:19:16 -06:00
|
|
|
--> $DIR/super-assoc-mismatch.rs:25:41
|
2024-02-29 14:24:09 -06:00
|
|
|
|
|
|
|
|
LL | trait BoundOnGat where Self::Assoc<u8>: Sub {
|
|
|
|
| ^^^ required by this bound in `BoundOnGat`
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `(): Sub` is not satisfied
|
2024-03-01 10:19:16 -06:00
|
|
|
--> $DIR/super-assoc-mismatch.rs:33:26
|
2024-02-29 14:24:09 -06:00
|
|
|
|
|
|
|
|
LL | fn trivial_bound() where (): Sub {}
|
|
|
|
| ^^^^^^^ the trait `Sub` is not implemented for `()`
|
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:7:1
|
|
|
|
|
|
|
|
|
LL | trait Sub: Super<Assoc = u16> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= help: see issue #48214
|
2024-03-07 16:09:00 -06:00
|
|
|
help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
|
LL + #![feature(trivial_bounds)]
|
|
|
|
|
|
2024-02-29 14:24:09 -06:00
|
|
|
|
2024-03-04 14:06:16 -06:00
|
|
|
error[E0277]: the trait bound `(): SubGeneric<u16>` is not satisfied
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:55:22
|
|
|
|
|
|
|
|
|
LL | type Assoc1<T> = ();
|
2024-10-24 16:14:17 -05:00
|
|
|
| ^^ the trait `SubGeneric<u16>` is not implemented for `()`
|
2024-03-04 14:06:16 -06:00
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:43:1
|
|
|
|
|
|
|
|
|
LL | trait SubGeneric<T>: SuperGeneric<T, Assoc = T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: required by a bound in `MultiAssoc`
|
|
|
|
--> $DIR/super-assoc-mismatch.rs:46:23
|
|
|
|
|
|
|
|
|
LL | trait MultiAssoc
|
|
|
|
| ---------- required by a bound in this trait
|
|
|
|
LL | where
|
|
|
|
LL | Self::Assoc1<()>: SubGeneric<Self::Assoc2>
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `MultiAssoc`
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2024-02-29 14:24:09 -06:00
|
|
|
|
2024-03-01 10:19:16 -06:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|