2023-08-24 19:22:24 +00:00
|
|
|
//~ ERROR overflow evaluating the requirement `A<A<A<A<A<A<A<...>>>>>>>: Send`
|
2023-06-02 09:22:57 +08:00
|
|
|
struct A<T>(B<T>);
|
|
|
|
//~^ ERROR recursive types `A` and `B` have infinite size
|
|
|
|
struct B<T>(A<A<T>>);
|
|
|
|
trait Foo {}
|
|
|
|
impl<T> Foo for T where T: Send {}
|
|
|
|
impl Foo for B<u8> {}
|
|
|
|
|
|
|
|
fn main() {}
|