Do not offer any of the suggestions in emit_coerce_suggestions for expr from destructuring assignment desugaring

This commit is contained in:
yukang 2023-06-06 02:48:57 +08:00
parent 533a819115
commit 23d7a07e86

View file

@ -12,11 +12,6 @@ LL | for reference in vec![1, 2, 3] {
...
LL | Some(reference) = cache.data.get(key) {
| ^^^^^^^^^ expected integer, found `&i32`
|
help: consider dereferencing the borrow
|
LL | Some(*reference) = cache.data.get(key) {
| +
error[E0308]: mismatched types
--> $DIR/ice-6250.rs:12:9