Sign in
fuchsia
/
third_party
/
rust
/
1dc13b5904cde9279b76909013cd40e1661fe8eb
/
.
/
src
/
test
/
run-pass
/
never_coercions.rs
blob: 70f67fd3da1b2be65548263d46bd6eac21e1ab7f [
file
] [
log
] [
blame
]
// Test that having something of type ! doesn't screw up type-checking and that it coerces to the
// LUB type of the other match arms.
fn
main
()
{
let
v
:
Vec
<
u32
>
=
Vec
::
new
();
match
0u32
{
0
=>
&
v
,
1
=>
return
,
_
=>
&
v
[..],
};
}