about summary refs log tree commit diff
path: root/tests/ui/consts/drop-maybe_uninit.rs
blob: 91c1c8a9260a654b914ad779ce4de4030cd8f3e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ 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() {}