mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
11 lines
333 B
Rust
11 lines
333 B
Rust
struct A<T>(B<T>);
|
|
//~^ ERROR recursive types `A` and `B` have infinite size
|
|
//~| ERROR `T` is only used recursively
|
|
struct B<T>(A<A<T>>);
|
|
//~^ ERROR `T` is only used recursively
|
|
trait Foo {}
|
|
impl<T> Foo for T where T: Send {}
|
|
impl Foo for B<u8> {}
|
|
//~^ ERROR conflicting implementations of trait `Foo` for type `B<u8>`
|
|
fn main() {}
|