rust/src/test/ui/const-generics/const-argument-non-static-lifetime.rs

18 lines
251 B
Rust
Raw Normal View History

// run-pass
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete
#![allow(dead_code)]
fn test<const N: usize>() {}
fn wow<'a>() -> &'a () {
test::<{
let _: &'a ();
3
}>();
&()
}
fn main() {}