Skip to content

cargo doc crashes on impl Trait usage #44731

Closed
@lilith

Description

@lilith
cargo doc --all --release --no-deps

error[E0282]: type annotations needed
   --> imageflow_core/src/codecs/mod.rs:106:68
    |
106 |     fn create(c: &Context, io:  IoProxy, io_id: i32) -> Result<Box<impl Decoder>> {
    |                                                                    ^^^^^^^^^^^^ cannot infer type for `_`

rustc -V
rustc 1.22.0-nightly (0701b37 2017-09-18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions