diff options
| author | lcnr <rust@lcnr.de> | 2023-12-14 14:47:41 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2023-12-14 15:22:37 +0100 |
| commit | 094707087171bb698d47aba807cd7d78c58e63ab (patch) | |
| tree | 80d6a6e80c7b2833500cca646811f7068c8faad7 /tests/ui/traits/next-solver/overflow/recursion-limit-zero-issue-115351.rs | |
| parent | 11d16c4082be25fd42b48b37e199f18b4dfe51ed (diff) | |
| download | rust-094707087171bb698d47aba807cd7d78c58e63ab.tar.gz rust-094707087171bb698d47aba807cd7d78c58e63ab.zip | |
consistently use "next solver" instead of "new solver"
Diffstat (limited to 'tests/ui/traits/next-solver/overflow/recursion-limit-zero-issue-115351.rs')
| -rw-r--r-- | tests/ui/traits/next-solver/overflow/recursion-limit-zero-issue-115351.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/overflow/recursion-limit-zero-issue-115351.rs b/tests/ui/traits/next-solver/overflow/recursion-limit-zero-issue-115351.rs new file mode 100644 index 00000000000..52a17a14281 --- /dev/null +++ b/tests/ui/traits/next-solver/overflow/recursion-limit-zero-issue-115351.rs @@ -0,0 +1,12 @@ +//~ 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. +// 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` |
