2012-05-11 13:41:58 +00:00
|
|
|
const foo: int = 5;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// assigning to various global constants
|
2012-06-30 11:23:59 +00:00
|
|
|
none = some(3); //~ ERROR assigning to static item
|
|
|
|
foo = 6; //~ ERROR assigning to static item
|
2012-05-11 13:41:58 +00:00
|
|
|
}
|