fork/rust

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

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

master
715 B22 linesraw
1error[E0204]: the trait `Copy` cannot be implemented for this type
2  --> $DIR/copy-is-not-modulo-regions.rs:13:21
3   |
4LL | struct Bar<'lt>(Foo<'lt>);
5   |                 -------- this field does not implement `Copy`
6...
7LL | impl<'any> Copy for Bar<'any> {}
8   |                     ^^^^^^^^^
9   |
10note: the `Copy` impl for `Foo<'any>` requires that `'any: 'static`
11  --> $DIR/copy-is-not-modulo-regions.rs:10:17
12   |
13LL | struct Bar<'lt>(Foo<'lt>);
14   |                 ^^^^^^^^
15help: consider restricting type parameter `'any`
16   |
17LL | impl<'any: 'static> Copy for Bar<'any> {}
18   |          +++++++++
19
20error: aborting due to previous error
21
22For more information about this error, try `rustc --explain E0204`.