]>
git.proxmox.com Git - rustc.git/blob - tests/ui/rfc-2497-if-let-chains/ast-validate-guards.rs
1 #![feature(let_chains)]
3 fn let_or_guard(x
: Result
<Option
<i32>, ()>) {
5 Ok(opt
) if let Some(4) = opt
|| false => {}
6 //~^ ERROR `let` expressions are not supported here
11 fn hiding_unsafe_mod(x
: Result
<Option
<i32>, ()>) {
16 //~^ ERROR module cannot be declared unsafe