fork/rust

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

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

master
612 B20 linesraw
1error[E0277]: the trait bound `NoClone: Clone` is not satisfied
2  --> $DIR/struct-path-alias-bounds.rs:9:13
3   |
4LL |     let s = A { a: NoClone };
5   |             ^ the trait `Clone` is not implemented for `NoClone`
6   |
7note: required by a bound in `S`
8  --> $DIR/struct-path-alias-bounds.rs:3:13
9   |
10LL | struct S<T: Clone> { a: T }
11   |             ^^^^^ required by this bound in `S`
12help: consider annotating `NoClone` with `#[derive(Clone)]`
13   |
14LL + #[derive(Clone)]
15LL | struct NoClone;
16   |
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0277`.