// https://github.com/rust-lang/rust/issues/58712 struct AddrVec { h: H, a: A, } impl AddrVec { //~^ ERROR cannot find type `DeviceId` in this scope pub fn device(&self) -> DeviceId { //~^ ERROR cannot find type `DeviceId` in this scope self.tail() } } fn main() {}