Skip to content

Commit ad9c54c

Browse files
committed
Merge
1 parent f823d83 commit ad9c54c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/middle/typeck/check/_match.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ pub fn check_pat_variant(pcx: pat_ctxt, pat: @ast::pat, path: @ast::path,
131131
// Assign the pattern the type of the struct.
132132
let ctor_tpt = ty::lookup_item_type(tcx, s_def_id);
133133
let struct_tpt = if ty::is_fn_ty(ctor_tpt.ty) {
134-
{ty: ty::ty_fn_ret(ctor_tpt.ty), ..ctor_tpt}
134+
ty::ty_param_bounds_and_ty {ty: ty::ty_fn_ret(ctor_tpt.ty),
135+
..ctor_tpt}
135136
} else {
136137
ctor_tpt
137138
};

0 commit comments

Comments
 (0)