]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/raw-ptr-const.rs
Rollup merge of #107058 - clubby789:eqeq-homoglyph, r=wesleywiser
[rust.git] / tests / ui / consts / raw-ptr-const.rs
1 // This is a regression test for a `delay_span_bug` during interning when a constant
2 // evaluates to a (non-dangling) raw pointer.  For now this errors; potentially it
3 // could also be allowed.
4
5 const CONST_RAW: *const Vec<i32> = &Vec::new() as *const _;
6 //~^ ERROR untyped pointers are not allowed in constant
7
8 fn main() {}