rust/tests/ui/traits/next-solver/overflow/recursion-limit-zero-issue-115351.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
475 B
Rust
Raw Normal View History

//~ ERROR overflow evaluating the requirement `Self well-formed`
//~| ERROR overflow evaluating the requirement `Self: Trait`
// This is a non-regression test for issue #115351, where a recursion limit of 0 caused an ICE.
2023-12-14 13:11:28 +01:00
// compile-flags: -Znext-solver --crate-type=lib
// check-fail
#![recursion_limit = "0"]
trait Trait {}
impl Trait for u32 {}
//~^ ERROR overflow evaluating the requirement `u32: Trait`
//~| ERROR overflow evaluating the requirement `u32 well-formed`