2023-08-24 14:22:24 -05:00
|
|
|
//~ ERROR overflow evaluating the requirement `A<A<A<A<A<A<A<...>>>>>>>: Send`
|
2023-06-01 20:22:57 -05:00
|
|
|
struct A<T>(B<T>);
|
|
|
|
//~^ ERROR recursive types `A` and `B` have infinite size
|
2024-02-15 11:12:05 -06:00
|
|
|
//~| ERROR `T` is never used
|
2023-06-01 20:22:57 -05:00
|
|
|
struct B<T>(A<A<T>>);
|
2024-02-15 11:12:05 -06:00
|
|
|
//~^ ERROR `T` is never used
|
2023-06-01 20:22:57 -05:00
|
|
|
trait Foo {}
|
|
|
|
impl<T> Foo for T where T: Send {}
|
|
|
|
impl Foo for B<u8> {}
|
|
|
|
|
|
|
|
fn main() {}
|