parent
1a48023a79
commit
0e5f76a718
@ -24,6 +24,7 @@ fn maybe_auto_unbox(tcx: ty::ctxt, t: ty::t) -> {t: ty::t, ds: [deref]} {
|
||||
}
|
||||
ty::ty_uniq(mt) {
|
||||
ds += [@{mut: mt.mut != imm, kind: unbox, outer_t: t}];
|
||||
t = mt.ty;
|
||||
}
|
||||
ty::ty_res(_, inner, tps) {
|
||||
ds += [@{mut: false, kind: unbox, outer_t: t}];
|
||||
|
8
src/test/run-pass/unique-alt-discrim.rs
Normal file
8
src/test/run-pass/unique-alt-discrim.rs
Normal file
@ -0,0 +1,8 @@
|
||||
// Issue #961
|
||||
|
||||
fn altsimple() {
|
||||
alt ~true {
|
||||
_ { }
|
||||
}
|
||||
}
|
||||
fn main() { }
|
Loading…
Reference in New Issue
Block a user