summary refs log tree commit diff
path: root/tests/ui/consts/raw-ptr-const.rs
blob: 24a77db9ffc5d674d5292dccc54b8cc5bee4bcb1 (plain)
1
2
3
4
5
6
7
8
// check-pass

// This is a regression test for a `span_delayed_bug` during interning when a constant
// evaluates to a (non-dangling) raw pointer.

const CONST_RAW: *const Vec<i32> = &Vec::new() as *const _;

fn main() {}