Auto merge of #71846 - petrochenkov:fresh2, r=davidtwco
resolve: Relax fresh binding disambiguation slightly to fix regression Fixes https://github.com/rust-lang/rust/issues/71765
This commit is contained in:
commit
de27cd7649
2 changed files with 11 additions and 6 deletions
|
|
@ -14,5 +14,6 @@ fn main() {
|
|||
let v = f; //~ ERROR `f` is ambiguous
|
||||
match v {
|
||||
f => {} //~ ERROR `f` is ambiguous
|
||||
mut f => {} // OK, unambiguously a fresh binding due to `mut`
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue