提交 0abf4583 编写于 作者: A Alex Crichton

More test fixes and rebase conflicts

上级 ef46caeb
......@@ -91,7 +91,7 @@ fn helper(input: libc::HANDLE, messages: Receiver<Req>, _: ()) {
} else {
let remove = {
match &mut chans[idx as uint - 1] {
&(ref mut c, oneshot) => { c.call(); oneshot }
&mut (ref mut c, oneshot) => { c.call(); oneshot }
}
};
if remove {
......
......@@ -19,6 +19,6 @@ fn foo<'a>(x: Box<Tr+ Sync + 'a>) -> Box<Tr+ Sync + 'a> { x }
fn main() {
let x: Box<Tr+ Sync>;
box() 1i as Box<Tr+ Sync>;
Box::new(1i) as Box<Tr+ Sync>;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册