Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
structs-enums
/
struct-like-variant-construct.rs
blob: 5a49d715b21f439067f1faffc49014735552e17f [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
dead_code
)]
//@ pretty-expanded FIXME #23616
enum
Foo
{
Bar
{
a
:
isize
,
b
:
isize
},
Baz
{
c
:
f64
,
d
:
f64
}
}
pub
fn
main
()
{
let
_x
=
Foo
::
Bar
{
a
:
2
,
b
:
3
};
}