]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/const-argument-non-static-lifetime.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.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() {}