2019-11-22 04:34:10 +00:00
|
|
|
error[E0277]: the trait bound `Foo: Trait` is not satisfied
|
2022-09-04 02:10:31 +00:00
|
|
|
--> $DIR/parent-label.rs:14:11
|
2019-11-22 04:34:10 +00:00
|
|
|
|
|
2022-09-01 19:52:39 +00:00
|
|
|
LL | let x = || {
|
|
|
|
| -- in this scope
|
2022-09-04 02:10:31 +00:00
|
|
|
LL | f(Foo {});
|
|
|
|
| - ^^^^^^ the trait `Trait` is not implemented for `Foo`
|
2022-09-01 19:52:39 +00:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `f`
|
2022-09-04 02:10:31 +00:00
|
|
|
--> $DIR/parent-label.rs:10:9
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
LL | fn f<T: Trait>(x: T) {}
|
|
|
|
| ^^^^^ required by this bound in `f`
|
2019-11-22 04:34:10 +00:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `Foo: Trait` is not satisfied
|
2022-09-04 02:10:31 +00:00
|
|
|
--> $DIR/parent-label.rs:16:15
|
2019-11-22 04:34:10 +00:00
|
|
|
|
|
2022-09-01 19:52:39 +00:00
|
|
|
LL | let y = || {
|
|
|
|
| -- in this scope
|
2022-09-04 02:10:31 +00:00
|
|
|
LL | f(Foo {});
|
|
|
|
| - ^^^^^^ the trait `Trait` is not implemented for `Foo`
|
2022-09-01 19:52:39 +00:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `f`
|
2022-09-04 02:10:31 +00:00
|
|
|
--> $DIR/parent-label.rs:10:9
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
LL | fn f<T: Trait>(x: T) {}
|
|
|
|
| ^^^^^ required by this bound in `f`
|
2019-11-22 04:34:10 +00:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `Foo: Trait` is not satisfied
|
2022-09-04 02:10:31 +00:00
|
|
|
--> $DIR/parent-label.rs:22:15
|
2019-11-22 04:34:10 +00:00
|
|
|
|
|
2022-09-01 19:52:39 +00:00
|
|
|
LL | fn main() {
|
|
|
|
| --------- in this scope
|
|
|
|
...
|
2022-09-04 02:10:31 +00:00
|
|
|
LL | f(Foo {});
|
|
|
|
| - ^^^^^^ the trait `Trait` is not implemented for `Foo`
|
2022-09-01 19:52:39 +00:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `f`
|
2022-09-04 02:10:31 +00:00
|
|
|
--> $DIR/parent-label.rs:10:9
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
LL | fn f<T: Trait>(x: T) {}
|
|
|
|
| ^^^^^ required by this bound in `f`
|
2019-11-22 04:34:10 +00:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `Foo: Trait` is not satisfied
|
2022-09-04 02:10:31 +00:00
|
|
|
--> $DIR/parent-label.rs:26:7
|
2019-11-22 04:34:10 +00:00
|
|
|
|
|
2022-09-01 19:52:39 +00:00
|
|
|
LL | fn main() {
|
|
|
|
| --------- in this scope
|
|
|
|
...
|
2022-09-04 02:10:31 +00:00
|
|
|
LL | f(Foo {});
|
|
|
|
| - ^^^^^^ the trait `Trait` is not implemented for `Foo`
|
2022-09-01 19:52:39 +00:00
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
note: required by a bound in `f`
|
2022-09-04 02:10:31 +00:00
|
|
|
--> $DIR/parent-label.rs:10:9
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
|
|
|
LL | fn f<T: Trait>(x: T) {}
|
|
|
|
| ^^^^^ required by this bound in `f`
|
2019-11-22 04:34:10 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|