Rust-analyzer "unresolved extern crate" with feature(test)

Attempting to use the nightly benchmarking features requires adding extern crate test; but rust-analyzer thinks this is an error. Running cargo bench of course compiles and runs this just fine, but having a constant error in VSCode is less than ideal.

My google-fu hasn't found anyone else having this problem so could be an issue with my configuration. How do I resolve this? Or can I somehow tell rust-analyzer to ignore it?