]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-ctypes-73747.rs
Rollup merge of #106829 - compiler-errors:more-alias-combine, r=spastorino
[rust.git] / tests / 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() {}