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