Let-else not checking for curly brace of inline const before `else`
#![feature(inline_const)] fn main() { let false = const { true } else { return; }; }
I believe the intention in let-else is that this code should be considered syntactically invalid, but it compiles successfully today.
If you replace const with unsafe, it correctly fails to parse.
error: right curly brace `}` before `else` in a `let...else` statement not allowed --> src/main.rs:6:5 | 6 | } else { | ^ | help: wrap the expression in parentheses | 4 ~ let false = (unsafe { 5 | true 6 ~ }) else { |