Open
Description
Code
I tried this code:
trait A {
type T: Iterator<Item = i32>;
}
trait B {
fn x(_: impl A<T = impl Send>);
}
I expected to see this happen:
error[E0277]: `impl Send` is not an iterator
Instead, this happened:
Code compiles
Version it worked on
It most recently worked on: 1.48.0-beta.8
Version with regression
rust nightly 2020-11-08 (likely not the earliest)
Metadata
Metadata
Assignees
Labels
Area: Associated items (types, constants & functions)Area: Trait systemCategory: This is a bug.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.Relevant to the compiler team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.Performance or correctness regression from one stable version to another.