Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
tuple
/
tuple-index-not-tuple.rs
blob: c478e1c67695d66745ffdfebee62f9426e36dfb3 [
file
] [
log
] [
blame
]
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`
}