Skip to content

Commit

Permalink
Add regression test for ZST statics being allowed to "read" from them…
Browse files Browse the repository at this point in the history
…selves
  • Loading branch information
oli-obk committed Dec 20, 2019
1 parent 64bb77f commit d2ad810
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/ui/consts/recursive-zst-static.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// build-pass

static FOO: () = FOO;

fn main() {
FOO
}

0 comments on commit d2ad810

Please sign in to comment.