Sign in
fuchsia
/
third_party
/
rust
/
31f5d69ba4f4d78740190a08ea097b41b00d96cb
/
.
/
src
/
test
/
run-pass
/
never_coercions.rs
blob: f32e2973813c63d59edf72a0c706b3e55c13b247 [
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
[..],
};
}