box errors in flat type

This commit is contained in:
Folkert 2021-08-02 22:27:24 +02:00
parent 9581195c1b
commit 06f07700d4
4 changed files with 5 additions and 5 deletions

View file

@ -841,7 +841,7 @@ fn type_to_variable(
result
}
Erroneous(problem) => {
let content = Content::Structure(FlatType::Erroneous(problem.clone()));
let content = Content::Structure(FlatType::Erroneous(Box::new(problem.clone())));
register(subs, rank, pools, content)
}

View file

@ -4499,6 +4499,6 @@ mod solve_expr {
std::mem::size_of::<roc_types::types::Problem>(),
);
assert_eq!(query, (40, 96, 80, 72, 64))
assert_eq!(query, (40, 80, 64, 56, 64))
}
}