Fix compile-fail/log-type-error.rs.
This commit is contained in:
parent
658d9238b7
commit
cae60cbaba
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// error-pattern: mismatched types
|
// error-pattern: unimplemented logging type
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
log main;
|
log main;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue