summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0375.rs
blob: 362854a53aa635e1ad808907f3accebcba064215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// ignore-tidy-linelength

#![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() {}