currently using a type const in a pattern, e.g. type const FOO: usize = 1_usize; if let FOO = 1 {} ICEs as we try to invoke const eval on FOO to evaluate the pattern. We should instead check if the constant is a type const and if so call try_normalize_erasing_regions.
Related to #105 in that we'll get this "for free" once const patterns are cleaned up, but we probably don't want to wait for that :)
currently using a type const in a pattern, e.g.
type const FOO: usize = 1_usize; if let FOO = 1 {}ICEs as we try to invoke const eval onFOOto evaluate the pattern. We should instead check if the constant is atype constand if so calltry_normalize_erasing_regions.Related to #105 in that we'll get this "for free" once const patterns are cleaned up, but we probably don't want to wait for that :)