mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 08:36:03 +00:00
12 lines
342 B
Rust
12 lines
342 B
Rust
//~ ERROR overflow evaluating the requirement `A<A<A<A<A<A<A<...>>>>>>>: Send`
|
|
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> {}
|
|
|
|
fn main() {}
|