Skip to content

Bad test return type example [attributes.testing.test.allowed-positions] #1714

@polazarus

Description

@polazarus

In [attributes.testing.test.allowed-positions], one of the example, Result<T, E> where T: Termination, E: Debug, is not an actual type, and as such not an example at all.

Proposed replacement: Result<(), std::io::Error>

A discussion about what constitutes a Termination type seems out of scope in the reference and subject to library change.

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