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 ->
begin
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

View File

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