mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
parent
5ab0840353
commit
f6ab12a3b1
@ -2195,11 +2195,10 @@ mod unify {
|
||||
alt struct(cx.tcx, actual) {
|
||||
ty::ty_uniq(actual_mt) {
|
||||
let mut = expected_mt.mut;
|
||||
// FIXME (409) Write a test then uncomment
|
||||
/*alt unify_mut(expected_mt.mut, actual_mt.mut) {
|
||||
alt unify_mut(expected_mt.mut, actual_mt.mut) {
|
||||
none. { ret ures_err(terr_box_mutability); }
|
||||
some(m) { mut = m; }
|
||||
}*/
|
||||
}
|
||||
let result = unify_step(cx, expected_mt.ty, actual_mt.ty);
|
||||
alt result {
|
||||
ures_ok(result_mt) {
|
||||
|
4
src/test/compile-fail/unique-mut.rs
Normal file
4
src/test/compile-fail/unique-mut.rs
Normal file
@ -0,0 +1,4 @@
|
||||
//error-pattern:mismatched types
|
||||
fn main() {
|
||||
let i: ~int = ~mutable 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user