blob: f41574ca3a37b739b967ee1e9485df0aa00ec9e4 [file] [log] [blame]
error: unconstrained generic constant
--> $DIR/variance-associated-consts.rs:14:12
|
LL | field: [u8; <T as Trait>::Const]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: try adding a `where` bound using this expression: `where [(); <T as Trait>::Const]:`
error: [o]
--> $DIR/variance-associated-consts.rs:13:1
|
LL | struct Foo<T: Trait> {
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors