5fa69deb00
This also now allows promoteds everywhere to point to 'extern static', because why not? We still check that constants cannot transitively reach 'extern static' through references. (We allow it through raw pointers.)
13 lines
220 B
Rust
13 lines
220 B
Rust
// check-pass
|
|
|
|
struct Value {
|
|
values: &'static [&'static Value],
|
|
}
|
|
|
|
// This `static` recursively points to itself through a promoted (the slice).
|
|
static VALUE: Value = Value {
|
|
values: &[&VALUE],
|
|
};
|
|
|
|
fn main() {}
|