]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-blocks/trait-error.stderr
Remove const_in_array_rep_expr
[rust.git] / src / test / ui / consts / const-blocks / trait-error.stderr
1 error[E0277]: the trait bound `Foo<String>: Copy` is not satisfied
2   --> $DIR/trait-error.rs:5:5
3    |
4 LL |     [Foo(String::new()); 4];
5    |     ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Foo<String>`
6    |
7    = help: the following implementations were found:
8              <Foo<T> as Copy>
9    = note: the `Copy` trait is required because the repeated element will be copied
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0277`.