summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/lint-ctypes-73747.rs
blob: 293ffd5c28e1089cee0a40805786a13f408251a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// check-pass

#[repr(transparent)]
struct NonNullRawComPtr<T: ComInterface> {
    inner: std::ptr::NonNull<<T as ComInterface>::VTable>,
}

trait ComInterface {
    type VTable;
}

extern "C" fn invoke<T: ComInterface>(_: Option<NonNullRawComPtr<T>>) {}

fn main() {}