about summary refs log tree commit diff
path: root/compiler/rustc_mir_dataflow/src/move_paths/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-13 06:27:37 +0100
committerGitHub <noreply@github.com>2024-02-13 06:27:37 +0100
commit1b396913a99759c6b92da2acac7e8a0ed349d773 (patch)
treedd6da74ef3ee80dbb94110db34883e76862aaf02 /compiler/rustc_mir_dataflow/src/move_paths/builder.rs
parent020e84652dbcf660a4983aa460a29f0267b5f590 (diff)
parent535c64336d6dcd588dd794d526047a4425e6e402 (diff)
downloadrust-1b396913a99759c6b92da2acac7e8a0ed349d773.tar.gz
rust-1b396913a99759c6b92da2acac7e8a0ed349d773.zip
Rollup merge of #120751 - estebank:issue-68982, r=nnethercote
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 ~
   |

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 ~
   |
```

Fix #68982.
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/move_paths/builder.rs')
0 files changed, 0 insertions, 0 deletions