Function rustc_mir::hair::pattern::check_match::check_for_mutation_in_guard[][src]

fn check_for_mutation_in_guard(cx: &MatchVisitor, guard: &Expr)
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Ensures that a pattern guard doesn't borrow by mutable reference or assign.

FIXME: this should be done by borrowck.