summary refs log tree commit diff
path: root/src/test/ui/consts/rfc-2203-const-array-repeat-exprs/trait-error.rs
blob: 35484d265bb5eea102dec3cd643216cbdc3db91a (plain)
1
2
3
4
5
6
7
8
9
10
// ignore-tidy-linelength
#![feature(const_in_array_repeat_expressions)]

#[derive(Copy, Clone)]
struct Foo<T>(T);

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