mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
96d24f2dd1
This reverts commit65cd843ae0
, reversing changes made tod255c6a57c
.
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
|
|
|