Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
issues
/
issue-14541.rs
blob: 555ec9f9868c5778cd086ef5bff443551c6776eb [
file
] [
log
] [
blame
]
struct
Vec2
{
y
:
f32
}
struct
Vec3
{
y
:
f32
,
z
:
f32
}
fn
make
(
v
:
Vec2
)
{
let
Vec3
{
y
:
_
,
z
:
_
}
=
v
;
//~^ ERROR mismatched types
//~| expected struct `Vec2`, found struct `Vec3`
}
fn
main
()
{
}