Function rustc::middle::typeck::check::check_const_in_typeExperimental
[-]
[+]
[src]
pub fn check_const_in_type(tcx: &ctxt, expr: &Expr, expected_type: t)
Checks a constant appearing in a type. At the moment this is just the length expression in a fixed-length vector, but someday it might be extended to type-level numeric literals.