2017-10-19 14:32:39 +02:00
|
|
|
// revisions: cfail1 cfail2 cfail3
|
|
|
|
// compile-flags: -Coverflow-checks=on
|
2018-04-02 13:20:06 +02:00
|
|
|
// compile-pass
|
2017-10-19 14:32:39 +02:00
|
|
|
|
|
|
|
#![allow(warnings)]
|
2018-05-11 14:33:37 +02:00
|
|
|
#![warn(const_err)]
|
2017-10-19 14:32:39 +02:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
255u8 + 1; //~ WARNING this expression will panic at run-time
|
|
|
|
}
|