]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/overflowing-sub.rs
Use better bound names in `-Zverbose` mode
[rust.git] / src / test / run-fail / overflowing-sub.rs
1 // error-pattern:thread 'main' panicked at 'attempt to subtract with overflow'
2 // compile-flags: -C debug-assertions
3
4 #![allow(const_err)]
5
6 fn main() {
7     let _x = 42u8 - (42u8 + 1);
8 }