error: unconstrained generic constant --> $DIR/variance-associated-consts.rs:14:12 | LL | field: [u8; ::Const] | ^^^^^^^^^^^^^^^^^^^^^^^^^ | help: try adding a `where` bound | LL | struct Foo where [(); ::Const]: { | ++++++++++++++++++++++++++++++++ error: [T: o] --> $DIR/variance-associated-consts.rs:13:1 | LL | struct Foo { | ^^^^^^^^^^^^^^^^^^^^ error: aborting due to 2 previous errors