rust/tests/ui/consts/const-blocks/trait-error.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
156 B
Rust
Raw Normal View History

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