]> git.lizzy.rs Git - rust.git/blob - tests/ui/on-unimplemented/parent-label.stderr
Rollup merge of #106797 - FawazTirmizi:dev/issues/104284, r=bjorn3
[rust.git] / tests / ui / on-unimplemented / parent-label.stderr
1 error[E0277]: the trait bound `Foo: Trait` is not satisfied
2   --> $DIR/parent-label.rs:14:11
3    |
4 LL |     let x = || {
5    |             -- in this scope
6 LL |         f(Foo {});
7    |         - ^^^^^^ the trait `Trait` is not implemented for `Foo`
8    |         |
9    |         required by a bound introduced by this call
10    |
11 note: required by a bound in `f`
12   --> $DIR/parent-label.rs:10:9
13    |
14 LL | fn f<T: Trait>(x: T) {}
15    |         ^^^^^ required by this bound in `f`
16
17 error[E0277]: the trait bound `Foo: Trait` is not satisfied
18   --> $DIR/parent-label.rs:16:15
19    |
20 LL |         let y = || {
21    |                 -- in this scope
22 LL |             f(Foo {});
23    |             - ^^^^^^ the trait `Trait` is not implemented for `Foo`
24    |             |
25    |             required by a bound introduced by this call
26    |
27 note: required by a bound in `f`
28   --> $DIR/parent-label.rs:10:9
29    |
30 LL | fn f<T: Trait>(x: T) {}
31    |         ^^^^^ required by this bound in `f`
32
33 error[E0277]: the trait bound `Foo: Trait` is not satisfied
34   --> $DIR/parent-label.rs:22:15
35    |
36 LL | fn main() {
37    | --------- in this scope
38 ...
39 LL |             f(Foo {});
40    |             - ^^^^^^ the trait `Trait` is not implemented for `Foo`
41    |             |
42    |             required by a bound introduced by this call
43    |
44 note: required by a bound in `f`
45   --> $DIR/parent-label.rs:10:9
46    |
47 LL | fn f<T: Trait>(x: T) {}
48    |         ^^^^^ required by this bound in `f`
49
50 error[E0277]: the trait bound `Foo: Trait` is not satisfied
51   --> $DIR/parent-label.rs:26:7
52    |
53 LL | fn main() {
54    | --------- in this scope
55 ...
56 LL |     f(Foo {});
57    |     - ^^^^^^ the trait `Trait` is not implemented for `Foo`
58    |     |
59    |     required by a bound introduced by this call
60    |
61 note: required by a bound in `f`
62   --> $DIR/parent-label.rs:10:9
63    |
64 LL | fn f<T: Trait>(x: T) {}
65    |         ^^^^^ required by this bound in `f`
66
67 error: aborting due to 4 previous errors
68
69 For more information about this error, try `rustc --explain E0277`.