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

pub struct Foo<T: ?Sized> {
    field_with_unsized_type: T,
}

pub struct Bar<T: ?Sized> {
    field_with_unsized_type: T,
}

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

fn main() {}