blob: 1bf8d3663440b2a524d6c9f4a99e8ff4b28c8ca2 [file] [log] [blame]
// Check that we require that associated types in an impl are well-formed.
pub trait Foo<'a> {
type Bar;
}
impl<'a, T> Foo<'a> for T {
type Bar = &'a T; //~ ERROR E0309
}
fn main() { }