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 5316ba9 commit a7bc556Copy full SHA for a7bc556
crates/ide-diagnostics/src/handlers/non_exhaustive_let.rs
@@ -80,7 +80,7 @@ fn main() {
80
//^^^^ error: non-exhaustive pattern: `Some(_)` not covered
81
}
82
83
-"#
+"#,
84
);
85
86
@@ -94,17 +94,7 @@ fn test(x: Result<i32, !>) {
94
95
"#,
96
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
- );
+
108
check_diagnostics(
109
r#"
110
//- minicore: result
0 commit comments