]>
Commit | Line | Data |
---|---|---|
60c5eb7d XL |
1 | error[E0277]: the trait bound `Foo: Trait` is not satisfied |
2 | --> $DIR/enclosing-scope.rs:14:11 | |
3 | | | |
60c5eb7d XL |
4 | LL | let x = || { |
5 | | _____________- | |
6 | LL | | f(Foo{}); | |
c295e0f8 XL |
7 | | | - ^^^^^ the trait `Trait` is not implemented for `Foo` |
8 | | | | | |
9 | | | required by a bound introduced by this call | |
60c5eb7d XL |
10 | LL | | let y = || { |
11 | LL | | f(Foo{}); | |
12 | LL | | }; | |
13 | LL | | }; | |
14 | | |_____- in this scope | |
94222f64 XL |
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` | |
60c5eb7d XL |
21 | |
22 | error[E0277]: the trait bound `Foo: Trait` is not satisfied | |
23 | --> $DIR/enclosing-scope.rs:16:15 | |
24 | | | |
60c5eb7d XL |
25 | LL | let y = || { |
26 | | _________________- | |
27 | LL | | f(Foo{}); | |
c295e0f8 XL |
28 | | | - ^^^^^ the trait `Trait` is not implemented for `Foo` |
29 | | | | | |
30 | | | required by a bound introduced by this call | |
60c5eb7d XL |
31 | LL | | }; |
32 | | |_________- in this scope | |
94222f64 XL |
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` | |
60c5eb7d XL |
39 | |
40 | error[E0277]: the trait bound `Foo: Trait` is not satisfied | |
41 | --> $DIR/enclosing-scope.rs:22:15 | |
42 | | | |
60c5eb7d XL |
43 | LL | / fn main() { |
44 | LL | | let x = || { | |
45 | LL | | f(Foo{}); | |
46 | LL | | let y = || { | |
47 | ... | | |
48 | LL | | f(Foo{}); | |
c295e0f8 XL |
49 | | | - ^^^^^ the trait `Trait` is not implemented for `Foo` |
50 | | | | | |
51 | | | required by a bound introduced by this call | |
60c5eb7d XL |
52 | ... | |
53 | LL | | f(Foo{}); | |
54 | LL | | } | |
55 | | |_- in this scope | |
94222f64 XL |
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` | |
60c5eb7d XL |
62 | |
63 | error[E0277]: the trait bound `Foo: Trait` is not satisfied | |
64 | --> $DIR/enclosing-scope.rs:26:7 | |
65 | | | |
60c5eb7d XL |
66 | LL | / fn main() { |
67 | LL | | let x = || { | |
68 | LL | | f(Foo{}); | |
69 | LL | | let y = || { | |
70 | ... | | |
71 | LL | | f(Foo{}); | |
c295e0f8 XL |
72 | | | - ^^^^^ the trait `Trait` is not implemented for `Foo` |
73 | | | | | |
74 | | | required by a bound introduced by this call | |
60c5eb7d XL |
75 | LL | | } |
76 | | |_- in this scope | |
94222f64 XL |
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` | |
60c5eb7d XL |
83 | |
84 | error: aborting due to 4 previous errors | |
85 | ||
86 | For more information about this error, try `rustc --explain E0277`. |