Sign in
fuchsia
/
third_party
/
rust
/
a5a7ed63488ebc6d7b1af575972f1f81136b1a72
/
.
/
src
/
test
/
ui
/
never_coercions.rs
blob: 105c38635331f1c87b013bf99842510e50cc1c4d [
file
] [
log
] [
blame
]
// run-pass
// 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
[..],
};
}