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
d441c54688
rust
/
src
/
test
/
run-pass
/
struct-field-assignability.rs
9 lines
111 B
Rust
Raw
Normal View
History
Unescape
Escape
librustc: Modify all code to use new lifetime binder syntax
2013-03-25 15:21:04 -05:00
struct
Foo
<
'
self
>
{
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
}
;
Use assert_eq! rather than assert! where possible
2013-05-18 21:02:45 -05:00
assert_eq!
(
*
f
.
x
,
3
)
;
Support assignability for struct fields. r=pcwalton
2013-01-07 18:57:43 -06:00
}
Reference in New Issue
Copy Permalink