diff options
| author | Ralf Jung <post@ralfj.de> | 2025-06-07 11:32:09 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-06-07 13:42:30 +0200 |
| commit | 17946c22b1d7abd2dd990bf6998c8491b534fe62 (patch) | |
| tree | 3483beea28e6753a04055cc17a0145e77b036b30 /tests/ui/recursion | |
| parent | 1dc9ae6d104205f194d84643d13fd01904a0010d (diff) | |
| download | rust-17946c22b1d7abd2dd990bf6998c8491b534fe62.tar.gz rust-17946c22b1d7abd2dd990bf6998c8491b534fe62.zip | |
const-eval error: always say in which item the error occurred
also adjust the wording a little so that we don't say "the error occurred here" for two different spans
Diffstat (limited to 'tests/ui/recursion')
| -rw-r--r-- | tests/ui/recursion/recursive-static-definition.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/recursion/recursive-static-definition.stderr b/tests/ui/recursion/recursive-static-definition.stderr index 7063e5c3c66..ce93c41bc67 100644 --- a/tests/ui/recursion/recursive-static-definition.stderr +++ b/tests/ui/recursion/recursive-static-definition.stderr @@ -2,13 +2,13 @@ error[E0080]: encountered static that tried to initialize itself with itself --> $DIR/recursive-static-definition.rs:1:23 | LL | pub static FOO: u32 = FOO; - | ^^^ evaluation of static initializer failed here + | ^^^ evaluation of `FOO` failed here error[E0080]: encountered static that tried to initialize itself with itself --> $DIR/recursive-static-definition.rs:9:23 | LL | pub static BAR: Foo = BAR; - | ^^^ evaluation of static initializer failed here + | ^^^ evaluation of `BAR` failed here error: aborting due to 2 previous errors |
