Sign in
◑
Theme
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
tuple
/
tuple-index-not-tuple.rs
blob: e9bb3ddf6bb5a6928c2fa2f4016396ed2bba8acb [
file
] [
edit
]
//@ reference: expr.tuple-index.required-type
struct
Point
{
x
:
isize
,
y
:
isize
}
struct
Empty
;
fn
main
()
{
let
origin
=
Point
{
x
:
0
,
y
:
0
};
origin
.
0
;
//~^ ERROR no field `0` on type `Point`
Empty
.
0
;
//~^ ERROR no field `0` on type `Empty`
}