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
12c32e944d
rust
/
src
/
test
/
compile-fail
/
borrowck-assign-to-enum.rs
6 lines
98 B
Rust
Raw
Normal View
History
Unescape
Escape
three new tests for assigning to various unassignable things
2012-05-11 08:41:58 -05:00
enum
foo
=
int
;
fn
main
(
)
{
let
x
=
foo
(
3
)
;
change the test suite `//! kind` syntax to `//~ kind` in order to avoid a conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 06:23:59 -05:00
*
x
=
4
;
//~ ERROR assigning to enum content
three new tests for assigning to various unassignable things
2012-05-11 08:41:58 -05:00
}
Reference in New Issue
Copy Permalink