6 lines
98 B
Rust
6 lines
98 B
Rust
|
enum foo = int;
|
||
|
|
||
|
fn main() {
|
||
|
let x = foo(3);
|
||
|
*x = 4; //! ERROR assigning to enum content
|
||
|
}
|