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
I was doing some work on u8s and u16s and I started getting an error:
In the image I just made a few extra tests in cubecl/crates/cubecl-core/tests/frontend/cast_elem.rs
The compiler tries to help:
error[E0223]: ambiguous associated type
...
help: if there were a trait named `Example` with associated type `cast_from` implemented for `u16`, you could use the fully-qualified path
|
7 | <u16 as Example>::cast_from#[cube(launch_unchecked)]
| +++++++++++++++++++++++++++
(The attribute is actually a part of the error msg, it's not a copy paste mistake here)
The text was updated successfully, but these errors were encountered:
It seems the commented out code is what is generated.
I compared that to a snippet of another primitive cast which works.
I added that line instead, and that at least seems to make the compiler happy.
If I can figure out why it didn't expand to that in the first place I can make a PR.
I was doing some work on
u8
s andu16
s and I started getting an error:In the image I just made a few extra tests in
cubecl/crates/cubecl-core/tests/frontend/cast_elem.rs
The compiler tries to help:
(The attribute is actually a part of the error msg, it's not a copy paste mistake here)
The text was updated successfully, but these errors were encountered: