error[E0080]: it is undefined behavior to use this value
- --> $DIR/ref_to_int_match.rs:26:1
+ --> $DIR/ref_to_int_match.rs:25:1
|
LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered pointer to alloc3, but expected initialized plain (non-pointer) bytes
}
error: could not evaluate constant pattern
- --> $DIR/ref_to_int_match.rs:8:14
+ --> $DIR/ref_to_int_match.rs:7:14
|
LL | 10..=BAR => {},
| ^^^
error: could not evaluate constant pattern
- --> $DIR/ref_to_int_match.rs:8:14
+ --> $DIR/ref_to_int_match.rs:7:14
|
LL | 10..=BAR => {},
| ^^^