about summary refs log tree commit diff
path: root/tests/ui/error-codes/E0375.rs
blob: eaf99dd384230370a697968c8480fd6f65b2aa08 (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, //~ ERROR E0277
    c: U,
}

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

fn main() {}