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