Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
parser
/
bare-struct-body.rs
blob: a557e861deeef2c629e182a5512da6ec4158bdf8 [
file
] [
log
] [
blame
]
struct
Foo
{
val
:
(),
}
fn
foo
()
->
Foo
{
//~ ERROR struct literal body without path
val
:
(),
}
fn
main
()
{
let
x
=
foo
();
x
.
val
==
42
;
//~ ERROR mismatched types
let
x
=
{
//~ ERROR struct literal body without path
val
:
(),
};
}