2023-01-14 18:32:17 +00:00
|
|
|
error[E0277]: the trait bound `[Adt; std::mem::size_of::<Self::Assoc>()]: Foo` is not satisfied
|
2023-08-25 18:28:34 +00:00
|
|
|
--> $DIR/dont-evaluate-array-len-on-err-1.rs:15:10
|
2021-02-15 11:38:20 +00:00
|
|
|
|
|
|
|
|
LL | <[Adt; std::mem::size_of::<Self::Assoc>()] as Foo>::bar()
|
2023-08-25 18:28:34 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `[Adt; std::mem::size_of::<Self::Assoc>()]`
|
2023-09-10 03:33:07 +00: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 11:38:20 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2021-02-15 11:38:20 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|