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