]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/rfc-2203-const-array-repeat-exprs/trait-error.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / consts / rfc-2203-const-array-repeat-exprs / trait-error.stderr
CommitLineData
1b1a35ee
XL
1error[E0277]: the trait bound `Foo<String>: Copy` is not satisfied
2 --> $DIR/trait-error.rs:7:5
416331ca
XL
3 |
4LL | [Foo(String::new()); 4];
1b1a35ee 5 | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Foo<String>`
416331ca
XL
6 |
7 = help: the following implementations were found:
1b1a35ee 8 <Foo<T> as Copy>
416331ca
XL
9 = note: the `Copy` trait is required because the repeated element will be copied
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0277`.