}
};
}
- gate_all!(if_let_guard, "`if let` guard is not implemented");
+ gate_all!(if_let_guard, "`if let` guards are experimental");
gate_all!(let_chains, "`let` expressions in this position are experimental");
gate_all!(async_closure, "async closures are unstable");
gate_all!(generators, "yield syntax is experimental");
fn _if_let_guard() {
match () {
() if let 0 = 1 => {}
- //~^ ERROR `if let` guard is not implemented
+ //~^ ERROR `if let` guards are experimental
() if (let 0 = 1) => {}
//~^ ERROR `let` expressions in this position are experimental
match () {
#[cfg(FALSE)]
() if let 0 = 1 => {}
- //~^ ERROR `if let` guard is not implemented
+ //~^ ERROR `if let` guards are experimental
_ => {}
}
use_expr!(let 0 = 1);
LL | use_expr!(let 0 = 1);
| ^^^ no rules expected this token in macro call
-error[E0658]: `if let` guard is not implemented
+error[E0658]: `if let` guards are experimental
--> $DIR/feature-gate.rs:7:12
|
LL | () if let 0 = 1 => {}
= note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information
= help: add `#![feature(if_let_guard)]` to the crate attributes to enable
-error[E0658]: `if let` guard is not implemented
+error[E0658]: `if let` guards are experimental
--> $DIR/feature-gate.rs:76:12
|
LL | () if let 0 = 1 => {}