Sign in
fuchsia
/
third_party
/
rust
/
02856110968903bf50a32184db200ccd9b6cc8b6
/
.
/
tests
/
ui
/
issues
/
issue-14541.rs
blob: 2ff1c1f8876cd0fa758eb1b9987171d647256556 [
file
]
struct
Vec2
{
y
:
f32
}
struct
Vec3
{
y
:
f32
,
z
:
f32
}
fn
make
(
v
:
Vec2
)
{
let
Vec3
{
y
:
_
,
z
:
_
}
=
v
;
//~^ ERROR mismatched types
//~| expected `Vec2`, found `Vec3`
}
fn
main
()
{
}