Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
ddb81ce68047d6383a789c8da514e443faea8349
/
.
/
tests
/
ui
/
structs-enums
/
struct-new-as-field-name.rs
blob: 1f776b40f52cf49b7336a9a7255ae3fc2f2afd6a [
file
] [
log
] [
blame
]
//@ run-pass
struct
Foo
{
new
:
isize
,
}
pub
fn
main
()
{
let
foo
=
Foo
{
new
:
3
};
assert_eq
!(
foo
.
new
,
3
);
}