Rust-analyzer or VS code error

this rust-analyzer or vscode error.

look at "a:" and "b:" in


pub const fn test(a: i32, b: i32) -> [i32; 2] { [a, b] }

const LOOKUPVALUE: &'static [[i32;2]; 4] = &[
    test(0x0fab272b, 0x0fab272b), test(0x7e1d93ea, 0x7e1d93ea),
    test(0x0fab272b, 0x7e1d93ea), test(0x7e1d93ea, 0x0fab272b),

fn main() {
    LOOKUPVALUE.iter().for_each(|x| println!("{:?}", x))


I think this is probably a bug in rust-analyzer and should be reported to their issue tracker.

1 Like

Ok, @mbrubeck

they close the issue.

Rust-analyzer or VS code error #7458

To clarify, it was closed by fixing it in :wink:

1 Like

My apologies for before reply. Sure they fix it very fast.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.