This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
0ea031bcb8
rust
/
src
/
test
/
run-pass
/
struct-field-assignability.rs
10 lines
102 B
Rust
Raw
Normal View
History
Unescape
Escape
Support assignability for struct fields. r=pcwalton
2013-01-07 18:57:43 -06:00
struct
Foo
{
Add manual &self/ and &static/ and /&self declarations that are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-02-26 13:34:00 -06:00
x
:
&
'
self
int
Support assignability for struct fields. r=pcwalton
2013-01-07 18:57:43 -06:00
}
check-fast fallout from removing export, r=burningtree
2013-02-01 21:43:17 -06:00
pub
fn
main
(
)
{
Support assignability for struct fields. r=pcwalton
2013-01-07 18:57:43 -06:00
let
f
=
Foo
{
x
:
@
3
}
;
assert
*
f
.
x
=
=
3
;
}
Reference in New Issue
Copy Permalink