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
let a = 123459075670950985750895769789057u128;let b = a+1;println!("{b}");
and then place the cursor right between u and 128 and quickly press backspace and u, it will ignore the u and show.
error: literal out of range for `i32`
--> main.rs:2:9
|
2 | let a = 123459075670950985750895769789057128;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the literal `123459075670950985750895769789057128` does not fit into the type `i32` whose range is `-2147483648..=2147483647`
= help: consider using the type `i128` instead
= note: `#[deny(overflowing_literals)]` on by default
-1323120535
The text was updated successfully, but these errors were encountered:
At the moment it's intentional.
This is caused by a check that ensures that executions can't be queued, to avoid big queues caused by quick typing.
I can increase the length of the queue, but then the experience for code that takes a long time will be weird (changes will not be reflected until much later).
Edit: I've just thought of a solution, to check if the input when the code was submitted is different than the current one, and run again if it's the case.
For example if you enter
and then place the cursor right between
u
and128
and quickly press backspace andu
, it will ignore theu
and show.The text was updated successfully, but these errors were encountered: