about summary refs log tree commit diff
path: root/tests/ui/consts/raw-ptr-const.rs
blob: 2946c9b4a8e9c0d1c8d2aa28524c91e1d3b2d342 (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() {}