96d24f2dd1
This reverts commit 65cd843ae06ad00123c131a431ed5304e4cd577a, reversing changes made to d255c6a57c393db6221b1ff700daea478436f1cd.
17 lines
435 B
Plaintext
17 lines
435 B
Plaintext
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
|
|
|