]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-argument-non-static-lifetime.rs
pin docs: add some forward references
[rust.git] / src / test / ui / const-generics / const-argument-non-static-lifetime.rs
1 // run-pass
2
3 #![feature(const_generics)]
4 //~^ WARN the feature `const_generics` is incomplete
5 #![allow(dead_code)]
6
7 fn test<const N: usize>() {}
8
9 fn wow<'a>() -> &'a () {
10     test::<{
11         let _: &'a ();
12         3
13     }>();
14     &()
15 }
16
17 fn main() {}