Closed
Description
This example (playground):
#![feature(min_type_alias_impl_trait)]
type X = impl Iterator<Item = u64> + Unpin;
struct Foo(X);
impl Foo {
fn new(z: Vec<u64>) -> Self {
Foo(z.into_iter())
}
}
should report an error because the use of X
in that position is not permitted with min_type_alias_impl_trait
. But it does not.
(Spun out from #64445)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done