Not sure how to reproduce, but my code looks like this:
use std::collections::VecDeque;
use std::fmt;
use thiserror::Error;
use super::{Locatable, Location};
Everything from use std::fmt; until use super::{Locatable, Location}; is highlighted in red with the message from the title. I'm not sure what it's trying to tell me, cargo check thinks it's fine.