os-rust/tests/ui/occurs-check.rs
lcnr 91535ad026 remove sub_relations from infcx, recompute in diagnostics
we don't track them when canonicalizing or when freshening,
resulting in instable caching in the old solver, and issues when
instantiating query responses in the new one.
2024-02-22 17:29:25 +01:00

5 lines
111 B
Rust

fn main() {
let f;
f = Box::new(f);
//~^ ERROR overflow evaluating the requirement `Box<_> <: _`
}