Function rustc_trans::middle::typeck::check::check_const_in_typeExperimental
[-]
[+]
[src]
pub fn check_const_in_type(tcx: &ctxt<'tcx>, expr: &Expr, expected_type: &'tcx TyS<'tcx>)
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.