summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0374.rs
blob: 41fcedc328df1968c4f90e3b970ae16820663d47 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(coerce_unsized)]
use std::ops::CoerceUnsized;

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

impl<T, U> CoerceUnsized<Foo<U>> for Foo<T> //~ ERROR E0374
    where T: CoerceUnsized<U> {}

fn main() {}