mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Add regression test for ZST statics being allowed to "read" from themselves
This commit is contained in:
parent
a7a011d2fa
commit
6b651b1a88
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…
Reference in New Issue
Block a user