2024-05-27 23:53:46 +02:00
|
|
|
error[E0229]: associated item constraints are not allowed here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/E0229.rs:13:25
|
2018-02-07 19:35:35 -08:00
|
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
|
|
|
|
| ^^^^^^^ associated item constraint not allowed here
|
2024-04-16 11:11:50 +05:30
|
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
help: consider removing this associated item binding
|
2024-04-16 11:11:50 +05:30
|
|
|
|
|
2024-07-09 22:11:20 +00:00
|
|
|
LL - fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
|
|
|
|
LL + fn baz<I>(x: &<I as Foo>::A) {}
|
|
|
|
|
|
|
2018-02-07 19:35:35 -08:00
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
error[E0229]: associated item constraints are not allowed here
|
2023-10-31 13:45:26 +00:00
|
|
|
--> $DIR/E0229.rs:13:25
|
|
|
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
|
|
|
|
| ^^^^^^^ associated item constraint not allowed here
|
2023-10-31 13:45:26 +00:00
|
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2024-05-27 23:53:46 +02:00
|
|
|
help: consider removing this associated item binding
|
2024-04-16 11:11:50 +05:30
|
|
|
|
|
2024-07-09 22:11:20 +00:00
|
|
|
LL - fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
|
|
|
|
LL + fn baz<I>(x: &<I as Foo>::A) {}
|
|
|
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
error[E0229]: associated item constraints are not allowed here
|
2023-10-31 13:45:26 +00:00
|
|
|
--> $DIR/E0229.rs:13:25
|
|
|
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
|
|
|
|
| ^^^^^^^ associated item constraint not allowed here
|
2023-10-31 13:45:26 +00:00
|
|
|
|
|
|
|
|
|
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
|
2024-05-27 23:53:46 +02:00
|
|
|
help: consider removing this associated item binding
|
2024-04-16 11:11:50 +05:30
|
|
|
|
|
2024-07-09 22:11:20 +00:00
|
|
|
LL - fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
|
|
|
|
LL + fn baz<I>(x: &<I as Foo>::A) {}
|
|
|
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `I: Foo` is not satisfied
|
|
|
|
|
--> $DIR/E0229.rs:13:15
|
|
|
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `I`
|
2023-10-31 13:45:26 +00:00
|
|
|
|
|
2024-11-28 18:43:28 +00:00
|
|
|
help: consider restricting type parameter `I` with trait `Foo`
|
2023-10-31 13:45:26 +00:00
|
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
LL | fn baz<I: Foo>(x: &<I as Foo<A = Bar>>::A) {}
|
2023-10-31 13:45:26 +00:00
|
|
|
| +++++
|
|
|
|
|
|
2024-02-09 12:17:55 +00:00
|
|
|
error[E0277]: the trait bound `I: Foo` is not satisfied
|
2024-12-25 02:43:27 +00:00
|
|
|
--> $DIR/E0229.rs:13:14
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
LL | fn baz<I>(x: &<I as Foo<A = Bar>>::A) {}
|
2024-12-25 02:43:27 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Foo` is not implemented for `I`
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
2024-11-28 18:43:28 +00:00
|
|
|
help: consider restricting type parameter `I` with trait `Foo`
|
2024-02-09 12:17:55 +00:00
|
|
|
|
|
2024-05-27 23:53:46 +02:00
|
|
|
LL | fn baz<I: Foo>(x: &<I as Foo<A = Bar>>::A) {}
|
2024-02-09 12:17:55 +00:00
|
|
|
| +++++
|
|
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2018-02-07 19:35:35 -08:00
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
Some errors have detailed explanations: E0229, E0277.
|
|
|
|
|
For more information about an error, try `rustc --explain E0229`.
|