mirror of
https://github.com/rust-lang/rust
synced 2024-10-06 08:40:35 +00:00
Fix compile-fail/log-type-error.rs.
This commit is contained in:
parent
658d9238b7
commit
cae60cbaba
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// error-pattern: mismatched types
|
||||
// error-pattern: unimplemented logging type
|
||||
|
||||
fn main() {
|
||||
log main;
|
||||
|
|
Loading…
Reference in a new issue