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
876b6ba792
rust
/
src
/
test
/
run-pass
/
struct-field-assignability.rs
10 lines
96 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
{
x
:
&
int
}
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