diff options
| author | Laurențiu Nicola <lnicola@users.noreply.github.com> | 2025-07-21 06:58:10 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-21 06:58:10 +0000 | 
| commit | 8f67bcf4b0524b2efcbeeae50d393b1b51474237 (patch) | |
| tree | 17b8a9144bf203d4f3184df4d3e471743bbffe07 /tests/ui/sized-hierarchy/overflow.rs | |
| parent | 4bbe74bb6cabb1f30775081254614ccda6985d8a (diff) | |
| parent | da90db796d0cf39658eac0074c63e5e9ffec2ff2 (diff) | |
| download | rust-8f67bcf4b0524b2efcbeeae50d393b1b51474237.tar.gz rust-8f67bcf4b0524b2efcbeeae50d393b1b51474237.zip | |
Merge pull request #20268 from lnicola/sync-from-rust
minor: Sync from downstream
Diffstat (limited to 'tests/ui/sized-hierarchy/overflow.rs')
| -rw-r--r-- | tests/ui/sized-hierarchy/overflow.rs | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/tests/ui/sized-hierarchy/overflow.rs b/tests/ui/sized-hierarchy/overflow.rs index e1af4885e53..f8e5dd5d402 100644 --- a/tests/ui/sized-hierarchy/overflow.rs +++ b/tests/ui/sized-hierarchy/overflow.rs @@ -1,9 +1,13 @@ //@ compile-flags: --crate-type=lib //@ revisions: current next //@ ignore-compare-mode-next-solver (explicit revisions) +//@[current] check-pass //@[next] check-pass //@[next] compile-flags: -Znext-solver +// FIXME(sized_hierarchy): this is expected to fail in the old solver when there +// isn't a temporary revert of the `sized_hierarchy` feature + use std::marker::PhantomData; trait ParseTokens { @@ -14,8 +18,6 @@ impl<T: ParseTokens + ?Sized> ParseTokens for Box<T> { } struct Element(<Box<Box<Element>> as ParseTokens>::Output); -//[current]~^ ERROR overflow evaluating impl ParseTokens for Element { -//[current]~^ ERROR overflow evaluating type Output = (); } | 
