Skip to content

Commit a7acd3d

Browse files
committed
fix comment in let-else test
1 parent 3b05f6e commit a7acd3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/ui/let-else/let-else-deref-coercion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Taken from https://github.com/rust-lang/rust/blob/6cc0a764e082d9c0abcf37a768d5889247ba13e2/compiler/rustc_typeck/src/check/_match.rs#L445-L462
22
//
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.
55

66
#![feature(let_else)]
77
use std::ops::{Deref, DerefMut};

0 commit comments

Comments
 (0)