summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0375.rs
blob: 0c03a8761df01ce8ec850c838e85256ca3c31877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(coerce_unsized)]
use std::ops::CoerceUnsized;

struct Foo<T: ?Sized, U: ?Sized> {
    a: i32,
    b: T,
    c: U,
}

impl<T, U> CoerceUnsized<Foo<U, T>> for Foo<T, U> {}
//~^ ERROR E0375

fn main() {}