rust/tests/ui/sized/recursive-type-pass.rs

11 lines
195 B
Rust

//@ check-pass
trait A { type Assoc; }
impl A for () {
// FIXME: it would be nice for this to at least cause a warning.
type Assoc = Foo<()>;
}
struct Foo<T: A>(T::Assoc);
fn main() {}