rust/tests/ui/traits/next-solver/overflow/recursion-limit-zero-issue-115351.rs
lcnr 5ec9b8d778 distinguish recursion limit based overflow for diagnostics
also change the number of allowed fixpoint steps to be fixed instead
of using the `log` of the total recursion depth.
2024-02-29 10:14:02 +01:00

7 lines
225 B
Rust

// This is a non-regression test for issue #115351, where a recursion limit of 0 caused an ICE.
//@ compile-flags: -Znext-solver --crate-type=lib
//@ check-pass
#![recursion_limit = "0"]
trait Trait {}
impl Trait for u32 {}