fork/rust

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

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

master
531 B19 linesraw
1error[E0277]: the trait bound `K: Tr` is not satisfied
2  --> $DIR/issue-96810.rs:8:8
3   |
4LL |     s: S<K>,
5   |        ^^^^ the trait `Tr` is not implemented for `K`
6   |
7note: required by a bound in `S`
8  --> $DIR/issue-96810.rs:1:13
9   |
10LL | struct S<T: Tr>(T::Assoc);
11   |             ^^ required by this bound in `S`
12help: consider restricting type parameter `K`
13   |
14LL | struct Hoge<K: Tr> {
15   |              ++++
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.