]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/consts/const-match-check.eval2.stderr
Do not suggest `let_else` if no bindings would be introduced
[rust.git] / src / test / ui / consts / const-match-check.eval2.stderr
index 579cb7e780007faadd230ba5bee1bd2e3273d02c..1b3b6e06c3df611e98de7a42ec2d342ac19fb1b6 100644 (file)
@@ -11,10 +11,6 @@ help: you might want to use `if let` to ignore the variants that aren't matched
    |
 LL |     let x: [i32; { if let 0 = 0 { todo!() } 0 }] = [];
    |                    ++           ~~~~~~~~~~~
-help: alternatively, on nightly, you might want to use `#![feature(let_else)]` to handle the variants that aren't matched
-   |
-LL |     let x: [i32; { let 0 = 0 else { todo!() }; 0 }] = [];
-   |                              ++++++++++++++++
 
 error: aborting due to previous error