fork/rust

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

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

master
719 B18 linesraw
1error[E0204]: the trait `Copy` cannot be implemented for this type
2  --> $DIR/deep-bad-copy-reason.rs:33:24
3   |
4LL | pub struct List<'tcx, T>(Interned<'tcx, ListS<T>>);
5   |                          ------------------------ this field does not implement `Copy`
6...
7LL | impl<'tcx, T> Copy for List<'tcx, T> {}
8   |                        ^^^^^^^^^^^^^
9   |
10note: the `Copy` impl for `Interned<'tcx, ListS<T>>` requires that `OpaqueListContents: Sized`
11  --> $DIR/deep-bad-copy-reason.rs:23:26
12   |
13LL | pub struct List<'tcx, T>(Interned<'tcx, ListS<T>>);
14   |                          ^^^^^^^^^^^^^^^^^^^^^^^^
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0204`.