You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Program with HRTB rejected with inexplicable error message #50301
A-inferenceArea: Type inferenceC-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.T-langRelevant to the language team
error[E0271]: type mismatch resolving `for<'a> <std::slice::Iter<'a, u32> as std::iter::Iterator>::Item == &u32`
--> src/lib.rs:13:6
|
13 | impl Trait for Impl {
| ^^^^^ expected bound lifetime parameter 'a, found concrete lifetime
|
= note: required because of the requirements on the impl of `std::iter::Iterator` for `std::iter::Cloned<std::slice::Iter<'_, u32>>`
Changing the definition of Item to u32 makes the program compile, but it seems like it should be accepted as it is.
A-inferenceArea: Type inferenceC-bugCategory: This is a bug.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.T-langRelevant to the language team
Activity
jakubadamw commentedon Aug 8, 2019
This program is no longer rejected, neither in 1.36, nor in nightly-2019-08-07.
jakubadamw commentedon Aug 10, 2019
@rustbot modify labels: E-needstest
Rollup merge of rust-lang#63577 - meffij:test-hrtb, r=alexcrichton
Rollup merge of rust-lang#63577 - meffij:test-hrtb, r=alexcrichton
Rollup merge of rust-lang#63577 - meffij:test-hrtb, r=alexcrichton