Skip to content

Borrowing -> Freezing example works in 2018 edition but text says it shouldn't compile #1140

Closed
@phansch

Description

@phansch

Seen on Discord.

In the freezing example, it says that the example should not compile. And it doesn't with the 2015 edition. However, when it's executed with the 2018 edition, it compiles. Probably because of NLL? Since the 2018 edition is the default for new projects, I think the example needs to be updated.

Playground with Rust 2018
Playground with Rust 2015

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions