]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-ctypes-73747.rs
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[rust.git] / src / test / ui / lint / lint-ctypes-73747.rs
1 // check-pass
2
3 #[repr(transparent)]
4 struct NonNullRawComPtr<T: ComInterface> {
5     inner: std::ptr::NonNull<<T as ComInterface>::VTable>,
6 }
7
8 trait ComInterface {
9     type VTable;
10 }
11
12 extern "C" fn invoke<T: ComInterface>(_: Option<NonNullRawComPtr<T>>) {}
13
14 fn main() {}