fork/rust

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

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

master
2.5 KiB89 linesraw
1error[E0277]: the trait bound `Foo: Trait` is not satisfied
2  --> $DIR/parent-label.rs:14:11
3   |
4LL |     let x = || {
5   |             -- in this scope
6LL |         f(Foo {});
7   |         - ^^^^^^ the trait `Trait` is not implemented for `Foo`
8   |         |
9   |         required by a bound introduced by this call
10   |
11help: this trait has no implementations, consider adding one
12  --> $DIR/parent-label.rs:6:1
13   |
14LL | trait Trait {}
15   | ^^^^^^^^^^^
16note: required by a bound in `f`
17  --> $DIR/parent-label.rs:10:9
18   |
19LL | fn f<T: Trait>(x: T) {}
20   |         ^^^^^ required by this bound in `f`
21
22error[E0277]: the trait bound `Foo: Trait` is not satisfied
23  --> $DIR/parent-label.rs:16:15
24   |
25LL |         let y = || {
26   |                 -- in this scope
27LL |             f(Foo {});
28   |             - ^^^^^^ the trait `Trait` is not implemented for `Foo`
29   |             |
30   |             required by a bound introduced by this call
31   |
32help: this trait has no implementations, consider adding one
33  --> $DIR/parent-label.rs:6:1
34   |
35LL | trait Trait {}
36   | ^^^^^^^^^^^
37note: required by a bound in `f`
38  --> $DIR/parent-label.rs:10:9
39   |
40LL | fn f<T: Trait>(x: T) {}
41   |         ^^^^^ required by this bound in `f`
42
43error[E0277]: the trait bound `Foo: Trait` is not satisfied
44  --> $DIR/parent-label.rs:22:15
45   |
46LL | fn main() {
47   | --------- in this scope
48...
49LL |             f(Foo {});
50   |             - ^^^^^^ the trait `Trait` is not implemented for `Foo`
51   |             |
52   |             required by a bound introduced by this call
53   |
54help: this trait has no implementations, consider adding one
55  --> $DIR/parent-label.rs:6:1
56   |
57LL | trait Trait {}
58   | ^^^^^^^^^^^
59note: required by a bound in `f`
60  --> $DIR/parent-label.rs:10:9
61   |
62LL | fn f<T: Trait>(x: T) {}
63   |         ^^^^^ required by this bound in `f`
64
65error[E0277]: the trait bound `Foo: Trait` is not satisfied
66  --> $DIR/parent-label.rs:26:7
67   |
68LL | fn main() {
69   | --------- in this scope
70...
71LL |     f(Foo {});
72   |     - ^^^^^^ the trait `Trait` is not implemented for `Foo`
73   |     |
74   |     required by a bound introduced by this call
75   |
76help: this trait has no implementations, consider adding one
77  --> $DIR/parent-label.rs:6:1
78   |
79LL | trait Trait {}
80   | ^^^^^^^^^^^
81note: required by a bound in `f`
82  --> $DIR/parent-label.rs:10:9
83   |
84LL | fn f<T: Trait>(x: T) {}
85   |         ^^^^^ required by this bound in `f`
86
87error: aborting due to 4 previous errors
88
89For more information about this error, try `rustc --explain E0277`.