Sign in
fuchsia
/
third_party
/
rust
/
91856ed52c58aa5ba66a015354d1cc69e9779bdf
/
.
/
src
/
test
/
ui
/
parser
/
mut-patterns.rs
blob: a5eb48252394f18b0b8ce30a1e26a05b1c55ea82 [
file
] [
log
] [
blame
]
// Can't put mut in non-ident pattern
pub
fn
main
()
{
struct
Foo
{
x
:
isize
}
let
mut
Foo
{
x
:
x
}
=
Foo
{
x
:
3
};
//~ ERROR: expected one of `:`, `;`, `=`, or `@`, found `{`
}