]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-ctypes-73747.rs
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[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() {}