diff options
| author | bors <bors@rust-lang.org> | 2025-06-08 23:18:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-06-08 23:18:34 +0000 |
| commit | c31cccb7b5cc098b1a8c1794ed38d7fdbec0ccb0 (patch) | |
| tree | 32178005ddb8db29ee196a77d75fae8e8030aa9c /tests/ui/error-codes | |
| parent | 6ccd4476036edfce364e6271f9e190ec7a2a1ff5 (diff) | |
| parent | 17946c22b1d7abd2dd990bf6998c8491b534fe62 (diff) | |
| download | rust-c31cccb7b5cc098b1a8c1794ed38d7fdbec0ccb0.tar.gz rust-c31cccb7b5cc098b1a8c1794ed38d7fdbec0ccb0.zip | |
Auto merge of #142008 - RalfJung:const-eval-error-here, r=oli-obk
const-eval error: always say in which item the error occurred I don't see why "is this generic" should make a difference. It may be reasonable to key this on whether the error occurs in a `const fn` that was invoked by a const (making it non-obvious which constant it is) vs inside the body of the const. r? `@oli-obk`
Diffstat (limited to 'tests/ui/error-codes')
| -rw-r--r-- | tests/ui/error-codes/E0080.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/error-codes/E0080.stderr b/tests/ui/error-codes/E0080.stderr index 431d4e04454..c78454620d1 100644 --- a/tests/ui/error-codes/E0080.stderr +++ b/tests/ui/error-codes/E0080.stderr @@ -2,13 +2,13 @@ error[E0080]: attempt to shift left by `500_i32`, which would overflow --> $DIR/E0080.rs:2:9 | LL | X = (1 << 500), - | ^^^^^^^^^^ evaluation of constant value failed here + | ^^^^^^^^^^ evaluation of `Enum::X::{constant#0}` failed here error[E0080]: attempt to divide `1_isize` by zero --> $DIR/E0080.rs:3:9 | LL | Y = (1 / 0), - | ^^^^^^^ evaluation of constant value failed here + | ^^^^^^^ evaluation of `Enum::Y::{constant#0}` failed here error: aborting due to 2 previous errors |
