2018-08-26 13:19:34 +00:00
|
|
|
error: any use of this value will cause an error
|
2019-03-11 00:28:52 +00:00
|
|
|
--> $DIR/const_panic.rs:4:19
|
2018-08-13 11:48:47 +00:00
|
|
|
|
|
2018-08-26 13:19:34 +00:00
|
|
|
LL | pub const Z: () = panic!("cheese");
|
2019-03-11 00:28:52 +00:00
|
|
|
| ------------------^^^^^^^^^^^^^^^^-
|
2018-08-26 13:19:34 +00:00
|
|
|
| |
|
2018-12-25 15:56:47 +00:00
|
|
|
| the evaluated program panicked at 'cheese', $DIR/const_panic.rs:4:19
|
2018-08-13 11:48:47 +00:00
|
|
|
|
|
2019-07-16 20:17:38 +00:00
|
|
|
= note: `#[deny(const_err)]` on by default
|
2019-12-16 13:56:47 +00:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-13 11:48:47 +00:00
|
|
|
|
2018-08-26 13:19:34 +00:00
|
|
|
error: any use of this value will cause an error
|
2019-03-11 00:28:52 +00:00
|
|
|
--> $DIR/const_panic.rs:7:19
|
2018-08-13 11:48:47 +00:00
|
|
|
|
|
2018-08-26 13:19:34 +00:00
|
|
|
LL | pub const Y: () = unreachable!();
|
2019-03-11 00:28:52 +00:00
|
|
|
| ------------------^^^^^^^^^^^^^^-
|
2018-08-26 13:19:34 +00:00
|
|
|
| |
|
2018-12-25 15:56:47 +00:00
|
|
|
| the evaluated program panicked at 'internal error: entered unreachable code', $DIR/const_panic.rs:7:19
|
2018-08-13 11:48:47 +00:00
|
|
|
|
|
2019-12-16 13:56:47 +00:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-13 11:48:47 +00:00
|
|
|
|
2018-08-26 13:19:34 +00:00
|
|
|
error: any use of this value will cause an error
|
2019-03-11 00:28:52 +00:00
|
|
|
--> $DIR/const_panic.rs:10:19
|
2018-08-13 11:48:47 +00:00
|
|
|
|
|
2018-08-26 13:19:34 +00:00
|
|
|
LL | pub const X: () = unimplemented!();
|
2019-03-11 00:28:52 +00:00
|
|
|
| ------------------^^^^^^^^^^^^^^^^-
|
2018-08-26 13:19:34 +00:00
|
|
|
| |
|
2019-12-20 06:46:29 +00:00
|
|
|
| the evaluated program panicked at 'not implemented', $DIR/const_panic.rs:10:19
|
2018-08-13 11:48:47 +00:00
|
|
|
|
|
2019-12-16 13:56:47 +00:00
|
|
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
2018-08-13 11:48:47 +00:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|