2023-01-14 12:32:17 -06:00
|
|
|
error[E0277]: the trait bound `[Adt; std::mem::size_of::<Self::Assoc>()]: Foo` is not satisfied
|
2023-08-25 13:28:34 -05:00
|
|
|
--> $DIR/dont-evaluate-array-len-on-err-1.rs:15:10
|
2021-02-15 05:38:20 -06:00
|
|
|
|
|
|
|
|
LL | <[Adt; std::mem::size_of::<Self::Assoc>()] as Foo>::bar()
|
2023-08-25 13:28:34 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `[Adt; std::mem::size_of::<Self::Assoc>()]`
|
2023-09-09 22:33:07 -05:00
|
|
|
|
|
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/dont-evaluate-array-len-on-err-1.rs:9:1
|
|
|
|
|
|
|
|
|
LL | trait Foo {
|
|
|
|
| ^^^^^^^^^
|
2021-02-15 05:38:20 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2021-02-15 05:38:20 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|