Closed
Description
foo.rs:
pub trait Foo
where
for<'a> &'a Self: Bar,
for<'a> <&'a Self as Bar>::Xyz: Clone {}
pub trait Bar {
type Xyz;
}
impl Foo for () {}
impl<'a> Bar for &'a () {
type Xyz = usize;
}
Error from rustc 1.0.0-nightly (30e1f9a1c 2015-03-14) (built 2015-03-15)
foo.rs:12:1: 12:19 error: the trait `for<'a> core::clone::Clone` is not implemented for the type `<&'a () as Bar>::Xyz` [E0277]
foo.rs:12 impl Foo for () {}
^~~~~~~~~~~~~~~~~~
Metadata
Metadata
Assignees
Labels
Area: Associated items (types, constants & functions)Area: Messages for errors, warnings, and lintsArea: Lazy normalization (tracking issue: #60471)Area: Lifetimes / regionsCategory: This is a bug.Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team