Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
structs-enums
/
struct-like-variant-construct.rs
blob: ec60fef9d3f74ecbbd4d791da7c170e0c3e25593 [
file
] [
log
] [
blame
]
//@ run-pass
#![
allow
(
dead_code
)]
enum
Foo
{
Bar
{
a
:
isize
,
b
:
isize
},
Baz
{
c
:
f64
,
d
:
f64
}
}
pub
fn
main
()
{
let
_x
=
Foo
::
Bar
{
a
:
2
,
b
:
3
};
}