summary refs log tree commit diff
path: root/src/test/ui/const-expr-addr-operator.stderr
blob: f6587c703bd7ff560165d451c3340658da874c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0080]: constant evaluation error
  --> $DIR/const-expr-addr-operator.rs:15:29
   |
15 |     const X: &'static u32 = &22; //~ ERROR constant evaluation error
   |                             ^^^ unimplemented constant expression: address operator
   |
note: for pattern here
  --> $DIR/const-expr-addr-operator.rs:17:9
   |
17 |         X => 0,
   |         ^

error: aborting due to previous error