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 `<T as Foo>::Assoc: ~const Foo` is not satisfied
--> src/lib.rs:10:5
|
10 | <T as Foo>::Assoc::foo();
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `~const Foo` is not implemented for `<T as Foo>::Assoc`
|
note: the trait `Foo` is implemented for `<T as Foo>::Assoc`, but that implementation is not `const`
--> src/lib.rs:10:5
|
10 | <T as Foo>::Assoc::foo();
| ^^^^^^^^^^^^^^^^^^^^^^
help: consider further restricting the associated type
|
9 | const fn foo<T: ~const Foo>() where <T as Foo>::Assoc: ~const Foo {
| +++++++++++++++++++++++++++++++++++
For more information about this error, try `rustc --explain E0277`.
error: could not compile `playground` due to previous error
The text was updated successfully, but these errors were encountered:
I tried this code: play
I expected to see this happen: Compiles
Instead, this happened: errors
The text was updated successfully, but these errors were encountered: