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 87df978 commit db39bcdCopy full SHA for db39bcd
compiler/rustc_mir_build/src/thir/pattern/const_to_pat.rs
@@ -139,6 +139,9 @@ impl<'tcx> ConstToPat<'tcx> {
139
ty::RawPtr(..) => {
140
"raw pointers cannot be used in patterns".to_string()
141
}
142
+ traits::NonStructuralMatchTyKind::TyAlias => {
143
+ bug!("use of a value of a type alias inside a pattern")
144
+ }
145
_ => {
146
bug!("use of a value of `{non_sm_ty}` inside a pattern")
147
0 commit comments