Skip to content

Commit 6911d9f

Browse files
committed
Temporarily remove non-working test case
1 parent 2097160 commit 6911d9f

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/tools/rust-analyzer/crates/ide-diagnostics/src/handlers/non_exhaustive_let.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ fn main() {
8080
//^^^^ error: non-exhaustive pattern: `Some(_)` not covered
8181
}
8282
}
83-
"#
83+
"#,
8484
);
8585
}
8686

@@ -94,17 +94,7 @@ fn test(x: Result<i32, !>) {
9494
}
9595
"#,
9696
);
97-
check_diagnostics(
98-
r#"
99-
//- minicore: result
100-
fn test(ptr: *const Result<i32, !>) {
101-
unsafe {
102-
let Ok(_x) = *ptr;
103-
//^^^^^^ error: non-exhaustive pattern: `Err(_)` not covered
104-
}
105-
}
106-
"#,
107-
);
97+
10898
check_diagnostics(
10999
r#"
110100
//- minicore: result

0 commit comments

Comments
 (0)