mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
Fix test
`if true` is recognized by MIR optimization.
This commit is contained in:
parent
790e611c9c
commit
a4fe567602
@ -38,8 +38,8 @@ fn main() {
|
||||
|
||||
#[derive(Clone)]
|
||||
struct Alpha;
|
||||
fn double(a: Alpha) -> (Alpha, Alpha) {
|
||||
if true {
|
||||
fn with_branch(a: Alpha, b: bool) -> (Alpha, Alpha) {
|
||||
if b {
|
||||
(a.clone(), a.clone())
|
||||
} else {
|
||||
(Alpha, a)
|
||||
|
Loading…
Reference in New Issue
Block a user