about summary refs log tree commit diff
path: root/tests/ui/resolve/missing-type-in-scope-58712.rs
blob: b9ff74e426dfc9b25743e997e1108acd018ff457 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// https://github.com/rust-lang/rust/issues/58712
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() {}