summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/raw-ptr-const.stderr
blob: 82f782fab7f548bb68c2fd7e070ecd65562d461e (plain)
1
2
3
4
5
6
7
8
9
10
error: unsupported untyped pointer in constant
  --> $DIR/raw-ptr-const.rs:5:1
   |
LL | const CONST_RAW: *const Vec<i32> = &Vec::new() as *const _;
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: memory only reachable via raw pointers is not supported

error: aborting due to previous error