]> git.lizzy.rs Git - rust.git/blob - src/test/ui/on-unimplemented/enclosing-scope.stderr
Rollup merge of #92959 - asquared31415:test-non-fn-help, r=estebank
[rust.git] / src / test / ui / on-unimplemented / enclosing-scope.stderr
1 error[E0277]: the trait bound `Foo: Trait` is not satisfied
2   --> $DIR/enclosing-scope.rs:14:11
3    |
4 LL |       let x = || {
5    |  _____________-
6 LL | |         f(Foo{});
7    | |         - ^^^^^ the trait `Trait` is not implemented for `Foo`
8    | |         |
9    | |         required by a bound introduced by this call
10 LL | |         let y = || {
11 LL | |             f(Foo{});
12 LL | |         };
13 LL | |     };
14    | |_____- in this scope
15    |
16 note: required by a bound in `f`
17   --> $DIR/enclosing-scope.rs:10:9
18    |
19 LL | fn f<T: Trait>(x: T) {}
20    |         ^^^^^ required by this bound in `f`
21
22 error[E0277]: the trait bound `Foo: Trait` is not satisfied
23   --> $DIR/enclosing-scope.rs:16:15
24    |
25 LL |           let y = || {
26    |  _________________-
27 LL | |             f(Foo{});
28    | |             - ^^^^^ the trait `Trait` is not implemented for `Foo`
29    | |             |
30    | |             required by a bound introduced by this call
31 LL | |         };
32    | |_________- in this scope
33    |
34 note: required by a bound in `f`
35   --> $DIR/enclosing-scope.rs:10:9
36    |
37 LL | fn f<T: Trait>(x: T) {}
38    |         ^^^^^ required by this bound in `f`
39
40 error[E0277]: the trait bound `Foo: Trait` is not satisfied
41   --> $DIR/enclosing-scope.rs:22:15
42    |
43 LL | / fn main() {
44 LL | |     let x = || {
45 LL | |         f(Foo{});
46 LL | |         let y = || {
47 ...  |
48 LL | |             f(Foo{});
49    | |             - ^^^^^ the trait `Trait` is not implemented for `Foo`
50    | |             |
51    | |             required by a bound introduced by this call
52 ...  |
53 LL | |     f(Foo{});
54 LL | | }
55    | |_- in this scope
56    |
57 note: required by a bound in `f`
58   --> $DIR/enclosing-scope.rs:10:9
59    |
60 LL | fn f<T: Trait>(x: T) {}
61    |         ^^^^^ required by this bound in `f`
62
63 error[E0277]: the trait bound `Foo: Trait` is not satisfied
64   --> $DIR/enclosing-scope.rs:26:7
65    |
66 LL | / fn main() {
67 LL | |     let x = || {
68 LL | |         f(Foo{});
69 LL | |         let y = || {
70 ...  |
71 LL | |     f(Foo{});
72    | |     - ^^^^^ the trait `Trait` is not implemented for `Foo`
73    | |     |
74    | |     required by a bound introduced by this call
75 LL | | }
76    | |_- in this scope
77    |
78 note: required by a bound in `f`
79   --> $DIR/enclosing-scope.rs:10:9
80    |
81 LL | fn f<T: Trait>(x: T) {}
82    |         ^^^^^ required by this bound in `f`
83
84 error: aborting due to 4 previous errors
85
86 For more information about this error, try `rustc --explain E0277`.