diff options
| author | Michael Goulet <michael@errs.io> | 2024-09-22 13:10:12 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-09-22 13:54:16 -0400 |
| commit | 3b8089a32055fe9b716db3fcd9d61ccc5bfed97b (patch) | |
| tree | 6f00bdeea0f39067a6635b60133ffab7759ccb9e /tests/ui/const-generics/generic_const_exprs | |
| parent | 0af7f0f4c4bdec179f42d0db4ec322040582de9d (diff) | |
| download | rust-3b8089a32055fe9b716db3fcd9d61ccc5bfed97b.tar.gz rust-3b8089a32055fe9b716db3fcd9d61ccc5bfed97b.zip | |
Introduce structurally_normalize_const, use it in hir_typeck
Diffstat (limited to 'tests/ui/const-generics/generic_const_exprs')
| -rw-r--r-- | tests/ui/const-generics/generic_const_exprs/different-fn.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/const-generics/generic_const_exprs/different-fn.stderr b/tests/ui/const-generics/generic_const_exprs/different-fn.stderr index 52917df0da1..ac80463480d 100644 --- a/tests/ui/const-generics/generic_const_exprs/different-fn.stderr +++ b/tests/ui/const-generics/generic_const_exprs/different-fn.stderr @@ -2,10 +2,10 @@ error[E0308]: mismatched types --> $DIR/different-fn.rs:10:5 | LL | [0; size_of::<Foo<T>>()] - | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `size_of::<T>()`, found `size_of::<Foo<T>>()` + | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `size_of::<T>()`, found `0` | = note: expected constant `size_of::<T>()` - found constant `size_of::<Foo<T>>()` + found constant `0` error: unconstrained generic constant --> $DIR/different-fn.rs:10:9 |
