We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b05f6e commit a7acd3dCopy full SHA for a7acd3d
src/test/ui/let-else/let-else-deref-coercion.rs
@@ -1,7 +1,7 @@
1
// Taken from https://github.com/rust-lang/rust/blob/6cc0a764e082d9c0abcf37a768d5889247ba13e2/compiler/rustc_typeck/src/check/_match.rs#L445-L462
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.
+// We attempt to `let Bar::Present(_): &mut Bar = foo` where foo is meant to Deref/DerefMut to Bar.
+// You can do this with an irrefutable binding, so it should work with let-else too.
5
6
#![feature(let_else)]
7
use std::ops::{Deref, DerefMut};
0 commit comments