diff options
| author | Ralf Jung <post@ralfj.de> | 2025-06-27 12:47:47 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-06-27 14:39:35 +0200 |
| commit | ed4f01ed2e033098f6c5e10a4a0cc740dc04f958 (patch) | |
| tree | 15991ee4b0a5dfcd7d04ec09b2a48681ded67293 /tests/ui/recursion/recursive-static-definition.rs | |
| parent | e61dd437f33b5a640e67dc3628397689c664c17f (diff) | |
| download | rust-ed4f01ed2e033098f6c5e10a4a0cc740dc04f958.tar.gz rust-ed4f01ed2e033098f6c5e10a4a0cc740dc04f958.zip | |
const-eval: error when initializing a static writes to that static
Diffstat (limited to 'tests/ui/recursion/recursive-static-definition.rs')
| -rw-r--r-- | tests/ui/recursion/recursive-static-definition.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/recursion/recursive-static-definition.rs b/tests/ui/recursion/recursive-static-definition.rs index 55db6a86bf1..4f0624eb162 100644 --- a/tests/ui/recursion/recursive-static-definition.rs +++ b/tests/ui/recursion/recursive-static-definition.rs @@ -1,5 +1,5 @@ pub static FOO: u32 = FOO; -//~^ ERROR encountered static that tried to initialize itself with itself +//~^ ERROR encountered static that tried to access itself during initialization #[derive(Copy, Clone)] pub union Foo { @@ -7,6 +7,6 @@ pub union Foo { } pub static BAR: Foo = BAR; -//~^ ERROR encountered static that tried to initialize itself with itself +//~^ ERROR encountered static that tried to access itself during initialization fn main() {} |
