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.

9 lines
336 B
Rust
Raw Normal View History

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