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
/
compile-fail
/
writing-to-immutable-rec.rs
6 lines
104 B
Rust
Raw
Normal View
History
Unescape
Escape
test: Enable more tests
2011-06-22 08:35:02 -07:00
// error-pattern: assignment to immutable field
Improve mutability checking. Closes #118.
2010-07-23 15:29:17 -07:00
fn
main
(
)
{
let
rec
(
int
x
)
r
=
rec
(
x
=
1
)
;
r
.
x
=
6
;
}
Reference in New Issue
Copy Permalink