rust/tests/ui/occurs-check-3.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

12 lines
208 B
Rust

// From Issue #778
enum Clam<T> { A(T) }
fn main() {
let c;
c = Clam::A(c);
//~^ ERROR overflow evaluating the requirement `Clam<_> <: _`
match c {
Clam::A::<isize>(_) => { }
}
}