]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-argument-non-static-lifetime.rs
Auto merge of #96546 - nnethercote:overhaul-MacArgs, r=petrochenkov
[rust.git] / src / test / ui / const-generics / const-argument-non-static-lifetime.rs
1 // run-pass
2 // revisions: full
3 // FIXME(#75323) Omitted min revision for now due to ICE.
4
5 #![cfg_attr(full, feature(generic_const_exprs))]
6 #![cfg_attr(full, allow(incomplete_features))]
7 #![allow(dead_code)]
8
9 fn test<const N: usize>() {}
10
11 fn wow<'a>() -> &'a () {
12     test::<{
13         let _: &'a ();
14         3
15     }>();
16     &()
17 }
18
19 fn main() {}