You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticUINT:uint = {// BUG, allows assigning immutable variable xfnfoo() -> uint{let x;
x = 100;
x = 200;
x
}100};// OK, produces a error about assigning immutable variable xfnfoo() -> uint{let x;
x = 100;
x = 200;
x
}fnmain(){println!("{}",UINT)}
Complete output:
<anon>:16:5: 16:12 error: re-assignment of immutable variable `x`
<anon>:16 x = 200;
^~~~~~~
<anon>:15:5: 15:12 note: prior assignment occurs here
<anon>:15 x = 100;
^~~~~~~
error: aborting due to previous error
playpen: application terminated with error code 101
Program ended.
The text was updated successfully, but these errors were encountered:
…lowr
Fix highlighting of byte escape sequences
Currently non-UTF8 escape sequences in byte strings and any escape sequences in byte literals are ignored.
Code (playpen):
Complete output:
The text was updated successfully, but these errors were encountered: