]> git.lizzy.rs Git - rust.git/blob - src/test/ui/structs/struct-path-alias-bounds.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / structs / struct-path-alias-bounds.stderr
1 error[E0277]: the trait bound `NoClone: std::clone::Clone` is not satisfied
2   --> $DIR/struct-path-alias-bounds.rs:19:13
3    |
4 LL |     let s = A { a: NoClone };
5    |             ^ the trait `std::clone::Clone` is not implemented for `NoClone`
6    |
7 note: required by `S`
8   --> $DIR/struct-path-alias-bounds.rs:13:1
9    |
10 LL | struct S<T: Clone> { a: T }
11    | ^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.