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