diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-02-07 20:01:09 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-02-07 20:01:09 +0000 |
| commit | 0c1b2731f8aabf994c3fffce16182404081c8f2c (patch) | |
| tree | fba2f935e97f98b5c6c3c169e7c5a10d3967930c /tests/ui/structs-enums/tuple-struct-construct.rs | |
| parent | 037f515caf46846d2bffae55883eebc6c1ccb861 (diff) | |
| download | rust-0c1b2731f8aabf994c3fffce16182404081c8f2c.tar.gz rust-0c1b2731f8aabf994c3fffce16182404081c8f2c.zip | |
Provide more suggestions on invalid equality where bounds
``` error: equality constraints are not yet supported in `where` clauses --> $DIR/equality-bound.rs:50:9 | LL | IntoIterator::Item = A, | ^^^^^^^^^^^^^^^^^^^^^^ not supported | = note: see issue #20041 <https://github.com/rust-lang/rust/issues/20041> for more information help: if `IntoIterator::Item` is an associated type you're trying to set, use the associated type binding syntax | LL ~ fn from_iter<T: IntoIterator<Item = A>>(_: T) -> Self LL | where LL ~ | error: equality constraints are not yet supported in `where` clauses --> $DIR/equality-bound.rs:63:9 | LL | T::Item = A, | ^^^^^^^^^^^ not supported | = note: see issue #20041 <https://github.com/rust-lang/rust/issues/20041> for more information help: if `IntoIterator::Item` is an associated type you're trying to set, use the associated type binding syntax | LL ~ fn from_iter<T: IntoIterator<Item = A>>(_: T) -> Self LL | where LL ~ | ``` Fix #68982.
Diffstat (limited to 'tests/ui/structs-enums/tuple-struct-construct.rs')
0 files changed, 0 insertions, 0 deletions
