rust/tests/ui/issues/issue-58712.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
272 B
Rust
Raw Normal View History

struct AddrVec<H, A> {
h: H,
a: A,
}
impl<H> AddrVec<H, DeviceId> {
//~^ 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() {}