What’s new in Rust 1.67
The unique approach of the Rust programming language results in better code with fewer compromises than C, C++, Go, and the other languages you probably use. It also gets updated regularly, often every month.
Where to download the latest Rust version
If you already have a previous version of Rust installed via rustup, you can access the latest version via the following command:
$ rustup update stableThe new features in Rust 1.67
Rust 1.67, unveiled January 26, adds a compiler warning pertaining to
#[must_use]
andasync fn
. In Rust,async
functions annotated with#[must_use]
now apply that attribute to the output of the returnedimpl Future
. TheFuture
trait already is annotated with#[must_use]
, so types implementing[Future]
are automatically#[must_use]
. Previously there was no way to indicate that the output of theFuture
is itself significant and should be used in some way. In Rust 1.67, the compiler now will warn if the output is not used.
Author: . [Source Link (*), InfoWorld]