Open
Description
I am hitting index out of bounds
panics when indexing into arrays in macros inside aync
functions. An example is the following.
async fn foo() {
let x: [u8; 1] = [0];
rprintln!("{:x} {:x}", x[0], x[1]);
}
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', src/main.rs:18:34
This playground showcases the issue. The actual macro I am using is rprintln from rtt-target
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress (long term)