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
Our current MSRV is 1.79.
I searched in the release note but couldn’t find an official statement about it.
Could you share a link to the announcement please (or the relevant tracking issue)?
You can indeed use the ! type in the return position of a closure or a function.
However, you still cannot define a bound to an FnOnce() -> ! which is what the definition of spawn would need.
This causes:
error[E0658]: the `!` type is experimental
--> src/multicore.rs:262:24
|
262 | F: FnOnce() -> ! + Send + 'static,
| ^
|
= note: see issue #35121 <https://github.com/rust-lang/rust/issues/35121> for more information
from the docs:
returning
!
has been stable for a while now -- the following code compiles under rustc 1.85.0:The text was updated successfully, but these errors were encountered: