about summary refs log tree commit diff
path: root/tests/ui/traits/issue-105231.rs
blob: 83c3158c106b6977263a27eb9466984e55014f0e (plain)
1
2
3
4
5
6
7
8
9
10
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() {}