2022-06-02 19:30:29 -05:00
|
|
|
error: any use of this value will cause an error
|
|
|
|
--> $DIR/ref_to_int_match.rs:25:27
|
2021-03-31 04:33:45 -05:00
|
|
|
|
|
|
|
|
LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
|
2022-02-13 09:27:59 -06:00
|
|
|
| -------------- ^^^^^^^^^^^^^^^^ unable to turn pointer into raw bytes
|
2021-03-31 04:33:45 -05:00
|
|
|
|
|
2022-06-02 19:30:29 -05:00
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
|
2022-08-27 16:46:14 -05:00
|
|
|
= help: this code performed an operation that depends on the underlying bytes representing a pointer
|
|
|
|
= help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[deny(const_err)]` on by default
|
2021-03-31 04:33:45 -05:00
|
|
|
|
|
|
|
error: could not evaluate constant pattern
|
2021-06-03 02:31:27 -05:00
|
|
|
--> $DIR/ref_to_int_match.rs:7:14
|
2021-03-31 04:33:45 -05:00
|
|
|
|
|
|
|
|
LL | 10..=BAR => {},
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: could not evaluate constant pattern
|
2021-06-03 02:31:27 -05:00
|
|
|
--> $DIR/ref_to_int_match.rs:7:14
|
2021-03-31 04:33:45 -05:00
|
|
|
|
|
|
|
|
LL | 10..=BAR => {},
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2022-06-25 08:31:36 -05:00
|
|
|
Future incompatibility report: Future breakage diagnostic:
|
|
|
|
error: any use of this value will cause an error
|
|
|
|
--> $DIR/ref_to_int_match.rs:25:27
|
|
|
|
|
|
|
|
|
LL | const BAR: Int = unsafe { Foo { r: &42 }.f };
|
2022-02-13 09:27:59 -06:00
|
|
|
| -------------- ^^^^^^^^^^^^^^^^ unable to turn pointer into raw bytes
|
2022-06-25 08:31:36 -05:00
|
|
|
|
|
|
|
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
|
|
|
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
|
2022-08-27 16:46:14 -05:00
|
|
|
= help: this code performed an operation that depends on the underlying bytes representing a pointer
|
|
|
|
= help: the absolute address of a pointer is not known at compile-time, so such operations are not supported
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: `#[deny(const_err)]` on by default
|
2022-06-25 08:31:36 -05:00
|
|
|
|