Skip to content

Termination stabilized in 1.61 #3116

Closed
rust-lang/rust
#97891
@ehuss

Description

@ehuss
  • I have checked the latest main branch to see if this has already been fixed
  • I have searched existing issues and pull requests for duplicates

URL to the section(s) of the book with this problem:

The `main` function may return any types that implement [the
`std::process::Termination` trait][termination]<!-- ignore -->. As of this
writing, the `Termination` trait is an unstable feature only available in
Nightly Rust, so you can’t yet implement it for your own types in Stable Rust,
but you might be able to someday!

Description of the problem: The Termination trait will be stable in 1.61. The paragraph linked above will likely need to be updated when the book is updated for 1.61.

Suggested fix: I would maybe just delete the last sentence, though I'm not sure if you'd like to say more about it (like an example).

(BTW, let me know if you would prefer to not get these "heads up" issues for future changes. I realize you probably go through the release notes to figure out what to change, so I'm not sure if it is helpful at all.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions