rust/tests/ui/consts/drop-maybe_uninit.rs

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

18 lines
325 B
Rust
Raw Normal View History

//@ build-pass
pub const fn f<T, const N: usize>(_: [std::mem::MaybeUninit<T>; N]) {}
pub struct Blubb<T>(*const T);
pub const fn g<T, const N: usize>(_: [Blubb<T>; N]) {}
pub struct Blorb<const N: usize>([String; N]);
pub const fn h(_: Blorb<0>) {}
pub struct Wrap(Blorb<0>);
pub const fn i(_: Wrap) {}
fn main() {}