-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-trait_alias`#![feature(trait_alias)]``#![feature(trait_alias)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
It seems to me that both S1
and S2
should compile:
#![feature(trait_alias)]
// Works
struct S1<'a, T: 'a, I: Iterator<Item = &'a T> + Clone> {
field: I,
}
trait SpecialIterator<'a, T: 'a> = Iterator<Item = &'a T> + Clone;
// Doesn't work
struct S2<'a, T: 'a, I: SpecialIterator<'a, T>> {
field: I,
}
Playground. On 1.46.0-nightly (2020-07-05 2753fab7ce3647033146)
.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-trait_alias`#![feature(trait_alias)]``#![feature(trait_alias)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-typesRelevant to the types team, which will review and decide on the PR/issue.Relevant to the types team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.