about summary refs log tree commit diff
path: root/tests/ui/consts/recursive-zst-static.default.stderr
blob: c814576dfd5b90f62ca511486e671d5058f43b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
error[E0080]: encountered static that tried to access itself during initialization
  --> $DIR/recursive-zst-static.rs:10:18
   |
LL | static FOO: () = FOO;
   |                  ^^^ evaluation of `FOO` failed here

error[E0391]: cycle detected when evaluating initializer of static `A`
  --> $DIR/recursive-zst-static.rs:13:1
   |
LL | static A: () = B;
   | ^^^^^^^^^^^^
   |
note: ...which requires evaluating initializer of static `B`...
  --> $DIR/recursive-zst-static.rs:14:1
   |
LL | static B: () = A;
   | ^^^^^^^^^^^^
   = note: ...which again requires evaluating initializer of static `A`, completing the cycle
   = note: cycle used when running analysis passes on this crate
   = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0080, E0391.
For more information about an error, try `rustc --explain E0080`.