rust/src/test/ui/consts/const-blocks/trait-error.stderr

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

13 lines
476 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `Foo<String>: Copy` is not satisfied
2021-01-26 16:49:30 -06:00
--> $DIR/trait-error.rs:5:5
|
LL | [Foo(String::new()); 4];
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Foo<String>`
|
= help: the trait `Copy` is implemented for `Foo<T>`
= note: the `Copy` trait is required because the repeated element will be copied
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.