]> git.proxmox.com Git - rustc.git/blame - src/test/ui/on-unimplemented/enclosing-scope.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / on-unimplemented / enclosing-scope.stderr
CommitLineData
60c5eb7d
XL
1error[E0277]: the trait bound `Foo: Trait` is not satisfied
2 --> $DIR/enclosing-scope.rs:14:11
3 |
60c5eb7d
XL
4LL | let x = || {
5 | _____________-
6LL | | 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
10LL | | let y = || {
11LL | | f(Foo{});
12LL | | };
13LL | | };
14 | |_____- in this scope
94222f64
XL
15 |
16note: required by a bound in `f`
17 --> $DIR/enclosing-scope.rs:10:9
18 |
19LL | fn f<T: Trait>(x: T) {}
20 | ^^^^^ required by this bound in `f`
60c5eb7d
XL
21
22error[E0277]: the trait bound `Foo: Trait` is not satisfied
23 --> $DIR/enclosing-scope.rs:16:15
24 |
60c5eb7d
XL
25LL | let y = || {
26 | _________________-
27LL | | 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
31LL | | };
32 | |_________- in this scope
94222f64
XL
33 |
34note: required by a bound in `f`
35 --> $DIR/enclosing-scope.rs:10:9
36 |
37LL | fn f<T: Trait>(x: T) {}
38 | ^^^^^ required by this bound in `f`
60c5eb7d
XL
39
40error[E0277]: the trait bound `Foo: Trait` is not satisfied
41 --> $DIR/enclosing-scope.rs:22:15
42 |
60c5eb7d
XL
43LL | / fn main() {
44LL | | let x = || {
45LL | | f(Foo{});
46LL | | let y = || {
47... |
48LL | | 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... |
53LL | | f(Foo{});
54LL | | }
55 | |_- in this scope
94222f64
XL
56 |
57note: required by a bound in `f`
58 --> $DIR/enclosing-scope.rs:10:9
59 |
60LL | fn f<T: Trait>(x: T) {}
61 | ^^^^^ required by this bound in `f`
60c5eb7d
XL
62
63error[E0277]: the trait bound `Foo: Trait` is not satisfied
64 --> $DIR/enclosing-scope.rs:26:7
65 |
60c5eb7d
XL
66LL | / fn main() {
67LL | | let x = || {
68LL | | f(Foo{});
69LL | | let y = || {
70... |
71LL | | 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
75LL | | }
76 | |_- in this scope
94222f64
XL
77 |
78note: required by a bound in `f`
79 --> $DIR/enclosing-scope.rs:10:9
80 |
81LL | fn f<T: Trait>(x: T) {}
82 | ^^^^^ required by this bound in `f`
60c5eb7d
XL
83
84error: aborting due to 4 previous errors
85
86For more information about this error, try `rustc --explain E0277`.