Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
tuple
/
tuple-index-not-tuple.rs
blob: c478e1c67695d66745ffdfebee62f9426e36dfb3 [
file
] [
log
] [
blame
] [
edit
]
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`
}