You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/let-else/let-else-deref-coercion.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
// Taken from https://github.com/rust-lang/rust/blob/6cc0a764e082d9c0abcf37a768d5889247ba13e2/compiler/rustc_typeck/src/check/_match.rs#L445-L462
2
2
//
3
-
// We attempt to `let Bar::Present(_)= foo` where foo is meant to Deref/DerefMut to Bar. You can do
4
-
// this with an irrefutable binding, so it should work with let-else too.
3
+
// We attempt to `let Bar::Present(_): &mut Bar = foo` where foo is meant to Deref/DerefMut to Bar.
4
+
// You can do this with an irrefutable binding, so it should work with let-else too.
0 commit comments