Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo doc crashes on impl Trait usage #44731

Closed
lilith opened this issue Sep 21, 2017 · 1 comment
Closed

cargo doc crashes on impl Trait usage #44731

lilith opened this issue Sep 21, 2017 · 1 comment
Labels
C-bug Category: This is a bug.

Comments

@lilith
Copy link

lilith commented Sep 21, 2017

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)

@kennytm
Copy link
Member

kennytm commented Sep 21, 2017

Similar cause as #43869.

Repro case for rustc:

#![feature(conservative_impl_trait)]
fn foo() -> Box<impl Clone> { //~ ERROR E0283
    loop {}
}
fn main() {
}

@aidanhs aidanhs added the C-bug Category: This is a bug. label Sep 21, 2017
kennytm added a commit to kennytm/rust that referenced this issue Sep 26, 2017
Also excludes `impl Trait` from everybody_loops if it appears in the path.
bors added a commit that referenced this issue Oct 7, 2017
Fix issue #44731.

Also excludes `impl Trait` from everybody_loops if it appears in the path.

Fixes #44731.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

3 participants