We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db39bcd commit 5aa4e3cCopy full SHA for 5aa4e3c
compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs
@@ -139,7 +139,7 @@ impl<'tcx> ConstToPat<'tcx> {
139
ty::RawPtr(..) => {
140
"raw pointers cannot be used in patterns".to_string()
141
}
142
- traits::NonStructuralMatchTyKind::TyAlias => {
+ ty::TyAlias(..) => {
143
bug!("use of a value of a type alias inside a pattern")
144
145
_ => {
0 commit comments