Function rustc::middle::typeck::check::_match::check_pat_variant[src]
pub fn check_pat_variant(pcx: &pat_ctxt, pat: &Pat, path: &Path, subpats: &Option<Vec<Gc<Pat>>>, expected: t)
pub fn check_pat_variant(pcx: &pat_ctxt, pat: &Pat, path: &Path, subpats: &Option<Vec<Gc<Pat>>>, expected: t)
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).