Announcing Rust 1.79.0
Announcing Rust 1.79.0
blog.rust-lang.org Announcing Rust 1.79.0 | Rust Blog
Empowering everyone to build reliable and efficient software.
![Announcing Rust 1.79.0 | Rust Blog](https://programming.dev/pictrs/image/c2e089f1-ce5e-46f5-8a4a-8bbb93b0018f.jpeg?format=webp&thumbnail=256)
You're viewing a single thread.
View all comments
3
comments
How does the
const { None }
example type-inference work? The size of the option type can't be known without knowing the type of theSome
variant.Edit: aha, it doesn't work as-is. It needs to infer the type of elements of
foo
from usage. https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=05a95c592626b6935ae812527aa6bbc610 0 Reply