1
Fork 0

Fix compile-fail/log-type-error.rs.

This commit is contained in:
Graydon Hoare 2010-07-04 16:02:12 -07:00
parent 658d9238b7
commit cae60cbaba
2 changed files with 4 additions and 2 deletions

View file

@ -1192,7 +1192,9 @@ let process_crate (cx:ctxt) (crate:Ast.crate) : unit =
| Ast.STMT_log atom -> | Ast.STMT_log atom ->
begin begin
match atom with match atom with
Ast.ATOM_lval lv -> set_auto_deref lv true Ast.ATOM_lval lv ->
unify_lval rval_ctx lv (any());
set_auto_deref lv true
| _ -> () | _ -> ()
end end

View file

@ -1,4 +1,4 @@
// error-pattern: mismatched types // error-pattern: unimplemented logging type
fn main() { fn main() {
log main; log main;