2024-02-15 17:12:05 +00:00
|
|
|
error: unconstrained generic constant
|
|
|
|
--> $DIR/variance-associated-consts.rs:14:12
|
|
|
|
|
|
|
|
|
LL | field: [u8; <T as Trait>::Const]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2024-03-21 00:03:59 +00:00
|
|
|
help: try adding a `where` bound
|
|
|
|
|
|
|
|
|
LL | struct Foo<T: Trait> where [(); <T as Trait>::Const]: {
|
|
|
|
| ++++++++++++++++++++++++++++++++
|
2024-02-15 17:12:05 +00:00
|
|
|
|
2024-08-22 21:07:29 +00:00
|
|
|
error: [T: o]
|
2024-03-11 21:28:16 +00:00
|
|
|
--> $DIR/variance-associated-consts.rs:13:1
|
|
|
|
|
|
|
|
|
LL | struct Foo<T: Trait> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2024-02-15 17:12:05 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2021-10-12 19:50:44 +00:00
|
|
|
|