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
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 13:21:04 -07: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 14:34:00 -05:00
x
:
&
'
self
int
Support assignability for struct fields. r=pcwalton
2013-01-07 16:57:43 -08:00
}
check-fast fallout from removing export, r=burningtree
2013-02-01 19:43:17 -08:00
pub
fn
main
(
)
{
Support assignability for struct fields. r=pcwalton
2013-01-07 16:57:43 -08:00
let
f
=
Foo
{
x
:
@
3
}
;
Use assert_eq! rather than assert! where possible
2013-05-18 22:02:45 -04:00
assert_eq!
(
*
f
.
x
,
3
)
;
Support assignability for struct fields. r=pcwalton
2013-01-07 16:57:43 -08:00
}
Reference in New Issue
Copy Permalink