Skip to content

Commit 2e63a56

Browse files
committed
uncomment code that was commented out for testing
1 parent 1ba8ed9 commit 2e63a56

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/compile-fail/copies.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,22 @@ fn if_same_then_else() -> Result<&'static str, ()> {
122122
if true {
123123
//~^NOTE same as this
124124
for _ in &[42] {
125-
// let foo: &Option<_> = &Some::<u8>(42);
126-
// if true {
127-
// break;
128-
// } else {
129-
// continue;
130-
// }
125+
let foo: &Option<_> = &Some::<u8>(42);
126+
if true {
127+
break;
128+
} else {
129+
continue;
130+
}
131131
}
132132
}
133133
else { //~ERROR this `if` has identical blocks
134134
for _ in &[42] {
135-
// let foo: &Option<_> = &Some::<u8>(42);
136-
// if true {
137-
// break;
138-
// } else {
139-
// continue;
140-
// }
135+
let foo: &Option<_> = &Some::<u8>(42);
136+
if true {
137+
break;
138+
} else {
139+
continue;
140+
}
141141
}
142142
}
143143

0 commit comments

Comments
 (0)