parent
bee40a9f98
commit
47abdbd0fe
2 changed files with 11 additions and 1 deletions
|
|
@ -12,6 +12,5 @@ static foo: int = 5;
|
|||
|
||||
fn main() {
|
||||
// assigning to various global constants
|
||||
None = Some(3); //~ ERROR cannot assign to immutable static item
|
||||
foo = 6; //~ ERROR cannot assign to immutable static item
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue