diff options
| author | Michael Goulet <michael@errs.io> | 2025-05-21 09:17:47 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-05-21 09:23:36 +0000 |
| commit | 44a2af306825dcfa9fc28547e6ccea1cb5076c68 (patch) | |
| tree | 74544bf87d1605a80794365c8b6e8066c77e9331 /tests | |
| parent | 87b454156998b945cf161c951f0fbc20ac292cf6 (diff) | |
| download | rust-44a2af306825dcfa9fc28547e6ccea1cb5076c68.tar.gz rust-44a2af306825dcfa9fc28547e6ccea1cb5076c68.zip | |
Do not eagerly fold consts in normalize_param_env_or_error if new solver
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/traits/next-solver/no-param-env-const-fold.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/traits/next-solver/no-param-env-const-fold.rs b/tests/ui/traits/next-solver/no-param-env-const-fold.rs new file mode 100644 index 00000000000..4f47332dd23 --- /dev/null +++ b/tests/ui/traits/next-solver/no-param-env-const-fold.rs @@ -0,0 +1,10 @@ +//@ check-pass +//@ compile-flags: -Znext-solver + +// Regression test for <https://github.com/rust-lang/trait-system-refactor-initiative/issues/213>. + +use std::ops::Deref; + +trait Trait: Deref<Target = [u8; { 1 + 1 }]> {} + +fn main() {} |
