rust/tests/ui/consts/auxiliary/issue-63226.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
222 B
Rust
Raw Normal View History

2019-08-14 23:56:57 -05:00
pub struct VTable{
state:extern "C" fn(),
2019-08-14 23:56:57 -05:00
}
impl VTable{
pub const fn vtable()->&'static VTable{
Self::VTABLE
}
const VTABLE: &'static VTable =
&VTable{state};
}
extern "C" fn state() {}