mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
16 lines
215 B
Rust
16 lines
215 B
Rust
//@ run-pass
|
|
// Regression test for https://github.com/rust-lang/rust/issues/36856
|
|
|
|
//@ compile-flags:-g
|
|
|
|
fn g() -> bool {
|
|
false
|
|
}
|
|
|
|
pub fn main() {
|
|
let a = !g();
|
|
if a != !g() {
|
|
panic!();
|
|
}
|
|
}
|