// build-pass (FIXME(62277): could be check-pass?) // #55266 struct VTable { _to_dst_ptr: fn(*mut ()) -> *mut DST, } trait HasVTableFor { const VTABLE: &'static VTable; } impl HasVTableFor for T { const VTABLE: &'static VTable = &VTable { _to_dst_ptr: |_: *mut ()| unsafe { std::mem::zeroed() }, }; } pub fn push() { >::VTABLE; } fn main() {}