mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
10 lines
262 B
Rust
10 lines
262 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
|
|
struct B<T>(A<A<T>>);
|
|
trait Foo {}
|
|
impl<T> Foo for T where T: Send {}
|
|
impl Foo for B<u8> {}
|
|
|
|
fn main() {}
|