Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
structs
/
struct-fields-typo.rs
blob: 0e9b2ae5145d7233f3e44151283d48d0b651dc78 [
file
] [
log
] [
blame
]
struct
BuildData
{
foo
:
isize
,
bar
:
f32
}
fn
main
()
{
let
foo
=
BuildData
{
foo
:
0
,
bar
:
0.5
,
};
let
x
=
foo
.
baa
;
//~ ERROR no field `baa` on type `BuildData`
//~| HELP a field with a similar name exists
//~| SUGGESTION bar
println
!(
"{}"
,
x
);
}