See the [RFC] and [tracking issue].
[tracking issue]: https://github.com/rust-lang/rust/issues/42640
[RFC]: 491e0af/text/2005-match-ergonomics.md
14 lines
370 B
Text
14 lines
370 B
Text
error[E0080]: constant evaluation error
|
|
--> $DIR/const-expr-addr-operator.rs:15:29
|
|
|
|
|
15 | const X: &'static u32 = &22;
|
|
| ^^^ 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
|
|
|