fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
524 B16 linesraw
1error[E0277]: the trait bound `Foo: Copy` is not satisfied
2  --> $DIR/repeat-to-run-dtor-twice.rs:17:15
3   |
4LL |     let _ = [ a; 5 ];
5   |               ^ the trait `Copy` is not implemented for `Foo`
6   |
7   = note: the `Copy` trait is required because this value will be copied for each element of the array
8help: consider annotating `Foo` with `#[derive(Copy)]`
9   |
10LL + #[derive(Copy)]
11LL | struct Foo {
12   |
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0277`.