☰
Debian Codegraph
@
0.1.5-1
/
/
tests
/
ui
/
pattern-match.rs
☽
☼
tests/ui/pattern-match.rs
code
plain
raw
symbols
SCIP
MIT
or
Apache-2.0
2018-2022 David Tolnay <
[email protected]
>
debian/copyright
1
use
ghost::phantom;
2
3
#[phantom]
4
struct
MyPhantom
<
T
: ?
Sized
>;
5
6
fn
main
() {
7
let
phantom =
MyPhantom
::<
u8
>;
8
9
match
phantom {
10
MyPhantom
=> {}
11
}
12
13
match
phantom {
14
MyPhantom
::<
u8
> => {}
15
}
16
}