]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/overflowing-mul.rs
Promote `Ref`s to constants instead of static
[rust.git] / src / test / run-fail / overflowing-mul.rs
1 // error-pattern:thread 'main' panicked at 'attempt to multiply with overflow'
2 // compile-flags: -C debug-assertions
3
4 #![allow(const_err)]
5
6 fn main() {
7     let x = 200u8 * 4;
8 }