diff options
| author | bors <bors@rust-lang.org> | 2020-05-05 06:01:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-05-05 06:01:08 +0000 |
| commit | de27cd7649e4182c63c770d18a561bda0d88cfc6 (patch) | |
| tree | c9297c4ec7a700f8ce93eaa89a7a1e4265a12e9c /src/test | |
| parent | 04689e22e946879f2f5e2c73849d2f4e1f2b4b32 (diff) | |
| parent | 5b84d5ff13cad8842c2244a141159d3383d66784 (diff) | |
| download | rust-de27cd7649e4182c63c770d18a561bda0d88cfc6.tar.gz rust-de27cd7649e4182c63c770d18a561bda0d88cfc6.zip | |
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
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/binding/ambiguity-item.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/ui/binding/ambiguity-item.rs b/src/test/ui/binding/ambiguity-item.rs index 10613cc6164..0f48340c2cd 100644 --- a/src/test/ui/binding/ambiguity-item.rs +++ b/src/test/ui/binding/ambiguity-item.rs @@ -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` } } |
