mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
9 lines
327 B
Rust
9 lines
327 B
Rust
|
// compile-flags: -C overflow-checks=off
|
||
|
|
||
|
// EMIT_MIR inherit_overflow_checks_use.main.DataflowConstProp.diff
|
||
|
fn main() {
|
||
|
// After inlining, this will contain a `CheckedBinaryOp`. The overflow
|
||
|
// must be ignored by the constant propagation to avoid triggering a panic.
|
||
|
let _ = <u8 as std::ops::Add>::add(255, 1);
|
||
|
}
|