You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait bound `F: Foo` is not satisfied
--> src/main.rs:8:17
|
8 | bytes: [u8; <F as Foo>::SIZE],
| ^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `F`
|
= help: consider adding a `where F: Foo` bound
= note: required by `Foo::SIZE`
Changing to struct Container<F: Foo> where F: Foo, as directed, fails with the same message.
The text was updated successfully, but these errors were encountered:
This code (playpen):
Fails with:
Changing to
struct Container<F: Foo> where F: Foo
, as directed, fails with the same message.The text was updated successfully, but these errors were encountered: