Promoteds can contain raw pointers, but these must still only point to immutable allocations

This commit is contained in:
Oliver Scherer 2019-12-25 13:58:02 +01:00
parent 632387f38d
commit 10f439a011
6 changed files with 56 additions and 22 deletions

View file

@ -0,0 +1,5 @@
// check-pass
pub const FOO: &'static *const i32 = &(&0 as _);
fn main() {}