File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ test_normalize ! { "
2+ error[E0004]: non-exhaustive patterns: `MyPhantom::__Phantom(_)` not covered
3+ --> src/main.rs:9:11
4+ |
5+ 9 | match phantom {
6+ | ^^^^^^^ pattern `MyPhantom::__Phantom(_)` not covered
7+ |
8+ note: `MyPhantom<u8>` defined here
9+ --> src/main.rs:4:8
10+ |
11+ 3 | #[phantom]
12+ | ---------- not covered
13+ 4 | struct MyPhantom<T: ?Sized>;
14+ | ^^^^^^^^^
15+ = note: the matched value is of type `MyPhantom<u8>`
16+ help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
17+ |
18+ 10 ~ MyPhantom => {},
19+ 11 + MyPhantom::__Phantom(_) => todo!()
20+ |
21+ " "
22+ error[E0004]: non-exhaustive patterns: `MyPhantom::__Phantom(_)` not covered
23+ --> src/main.rs:9:11
24+ |
25+ 9 | match phantom {
26+ | ^^^^^^^ pattern `MyPhantom::__Phantom(_)` not covered
27+ |
28+ note: `MyPhantom<u8>` defined here
29+ --> src/main.rs:4:8
30+ |
31+ 3 | #[phantom]
32+ | ---------- not covered
33+ 4 | struct MyPhantom<T: ?Sized>;
34+ | ^^^^^^^^^
35+ = note: the matched value is of type `MyPhantom<u8>`
36+ help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
37+ |
38+ 10 ~ MyPhantom => {},
39+ 11 + MyPhantom::__Phantom(_) => todo!()
40+ |
41+ " }
You can’t perform that action at this time.
0 commit comments