rust/src/test/ui/consts/control-flow/assert.const_panic.stderr

16 lines
703 B
Plaintext
Raw Normal View History

2020-05-21 14:49:38 -05:00
error: any use of this value will cause an error
--> $DIR/assert.rs:10:15
|
LL | const _: () = assert!(false);
2020-05-21 14:49:38 -05:00
| --------------^^^^^^^^^^^^^^-
| |
| the evaluated program panicked at 'assertion failed: false', $DIR/assert.rs:10:15
|
2020-05-21 14:49:38 -05:00
= note: `#[deny(const_err)]` on by default
2021-01-30 07:49:22 -06: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>
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2020-05-21 14:49:38 -05:00
error: aborting due to previous error