rust/tests/ui/consts/const-blocks/trait-error.rs
2023-01-11 09:32:08 +00:00

8 lines
156 B
Rust

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