rust/tests/ui/consts/auxiliary/issue-63226.rs
2023-01-11 09:32:08 +00:00

15 lines
222 B
Rust

pub struct VTable{
state:extern "C" fn(),
}
impl VTable{
pub const fn vtable()->&'static VTable{
Self::VTABLE
}
const VTABLE: &'static VTable =
&VTable{state};
}
extern "C" fn state() {}