We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ba8ed9 commit 2e63a56Copy full SHA for 2e63a56
tests/compile-fail/copies.rs
@@ -122,22 +122,22 @@ fn if_same_then_else() -> Result<&'static str, ()> {
122
if true {
123
//~^NOTE same as this
124
for _ in &[42] {
125
- // let foo: &Option<_> = &Some::<u8>(42);
126
- // if true {
127
- // break;
128
- // } else {
129
- // continue;
130
- // }
+ let foo: &Option<_> = &Some::<u8>(42);
+ if true {
+ break;
+ } else {
+ continue;
+ }
131
}
132
133
else { //~ERROR this `if` has identical blocks
134
135
136
137
138
139
140
141
142
143
0 commit comments