-
Notifications
You must be signed in to change notification settings - Fork 539
Open
Labels
C-bugIncorrect statements, terminology, or rendering issuesIncorrect statements, terminology, or rendering issues
Description
The Reference says:
A trait implementation must define all non-default associated items declared by the implemented trait, may redefine default associated items defined by the implemented trait, and cannot define any other items.
However, the compiler accepts:
trait Tr {
type Ty where Self: Sized;
fn f() where Self: Sized;
}
trait A {}
impl Tr for dyn A {}
Metadata
Metadata
Assignees
Labels
C-bugIncorrect statements, terminology, or rendering issuesIncorrect statements, terminology, or rendering issues