Skip to content

Commit 5316378

Browse files
oli-obklcnr
andcommitted
Simplify test
Co-authored-by: lcnr <[email protected]>
1 parent 24cdb72 commit 5316378

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/ui/pattern/usefulness/const-partial_eq-fallback-ice.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ const CONSTANT: &&MyType = &&MyType;
1313
fn main() {
1414
if let CONSTANT = &&MyType {
1515
//~^ ERROR must be annotated with `#[derive(PartialEq, Eq)]`
16-
println!("semantic!");
17-
} else {
18-
println!("structural!");
16+
println!("did match!");
1917
}
2018
}

0 commit comments

Comments
 (0)