Closed
Description
The following code results in a parsing error where the 0
character is unexpected.
fn get_usize() -> usize {
#[cfg(not(debug_assertions))]
0
#[cfg(debug_assertions)]
1
}
However, the following code works fine:
fn get_usize_return() -> usize {
#[cfg(not(debug_assertions))]
return 0;
#[cfg(debug_assertions)]
1
}
I think this is a bug in the parser?