Add regression test for ZST statics being allowed to "read" from themselves
This commit is contained in:
parent
a7a011d2fa
commit
6b651b1a88
1 changed files with 7 additions and 0 deletions
7
src/test/ui/consts/recursive-zst-static.rs
Normal file
7
src/test/ui/consts/recursive-zst-static.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// build-pass
|
||||
|
||||
static FOO: () = FOO;
|
||||
|
||||
fn main() {
|
||||
FOO
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue