Error code E0666
impl Trait
types cannot appear nested in the generic arguments of other
impl Trait
types.
Erroneous code example:
ⓘ
Type parameters for impl Trait
types must be explicitly defined as named
generic parameters:
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
impl Trait
types cannot appear nested in the generic arguments of other
impl Trait
types.
Erroneous code example:
ⓘ
Type parameters for impl Trait
types must be explicitly defined as named
generic parameters: