summary refs log tree commit diff
path: root/src/test/ui/consts/const-blocks/trait-error.rs
blob: 5a614cbdd15619c3867ffe6251da3b1339a2df1b (plain)
1
2
3
4
5
6
7
#[derive(Copy, Clone)]
struct Foo<T>(T);

fn main() {
    [Foo(String::new()); 4];
    //~^ ERROR the trait bound `Foo<String>: Copy` is not satisfied [E0277]
}