]> git.lizzy.rs Git - rust.git/blob - tests/ui/structs/struct-path-alias-bounds.stderr
Auto merge of #106827 - alexcrichton:update-llvm-to-15.0.7, r=cuviper
[rust.git] / tests / ui / structs / struct-path-alias-bounds.stderr
1 error[E0277]: the trait bound `NoClone: Clone` is not satisfied
2   --> $DIR/struct-path-alias-bounds.rs:9:13
3    |
4 LL |     let s = A { a: NoClone };
5    |             ^ the trait `Clone` is not implemented for `NoClone`
6    |
7 note: required by a bound in `S`
8   --> $DIR/struct-path-alias-bounds.rs:3:13
9    |
10 LL | struct S<T: Clone> { a: T }
11    |             ^^^^^ required by this bound in `S`
12 help: consider annotating `NoClone` with `#[derive(Clone)]`
13    |
14 LL | #[derive(Clone)]
15    |
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.