Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
never_type
/
never-type-arg.rs
blob: 3cbb114f43b946b44e39b475b32b17778edc8914 [
file
] [
log
] [
blame
]
// Test that we can use ! as an argument to a trait impl.
// check-pass
struct
Wub
;
impl
PartialEq
<!>
for
Wub
{
fn
eq
(&
self
,
other
:
&!)
->
bool
{
*
other
}
}
fn
main
()
{
let
_
=
Wub
==
panic
!(
"oh no!"
);
}