Use get_parent_node
instead of using spans
This commit is contained in:
parent
7c2526a9d7
commit
2461b7a264
4 changed files with 30 additions and 41 deletions
|
@ -2,7 +2,7 @@ error: non-reference pattern used to match a reference (see issue #42640)
|
|||
--> $DIR/suggestion.rs:12:12
|
||||
|
|
||||
12 | if let Some(y) = &Some(22) { //~ ERROR non-reference pattern
|
||||
| ^^^^^^^ help: consider using: `&Some(y)`
|
||||
| ^^^^^^^ help: consider using a reference: `&Some(y)`
|
||||
|
|
||||
= help: add #![feature(match_default_bindings)] to the crate attributes to enable
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue