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
My environment is rust 1.81.0-nightly, and I've tested this issue on both Windows 10 and Ubuntu 24.04. Including the latest sharded library version results in a compilation error. Following the compiler's suggestion to remove ?Sized + allows the program to run smoothly.
The specific error points to a line in the sharded library's source code, which can be found at:
|
15 | fn equivalent_key<K, V>(k: &K) -> impl Fn(&(K, V)) -> bool + '_
| - this type parameter needs to be `Sized`
...
19 | move |x| k.eq(x.0.borrow())
| ^ doesn't have a size known at compile-time
|
= note: only the last element of a tuple may have a dynamically sized type
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
17 - K: ?Sized + Eq,
17 + K: Eq,
|
For more information about this error, try `rustc --explain E0277`.
The text was updated successfully, but these errors were encountered:
My environment is rust 1.81.0-nightly, and I've tested this issue on both Windows 10 and Ubuntu 24.04. Including the latest sharded library version results in a compilation error. Following the compiler's suggestion to remove
?Sized +
allows the program to run smoothly.The specific error points to a line in the sharded library's source code, which can be found at:
sharded/src/lib.rs
Line 123 in 65adf3a
The error details indicate:
The text was updated successfully, but these errors were encountered: