blob: 0357e4ed59fdad95580e76b50c64f421cd82f8af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// [full] check-pass
// revisions: full min
// regression test for #78180
#![cfg_attr(full, feature(generic_const_exprs))]
#![cfg_attr(full, allow(incomplete_features))]
#![allow(dead_code)]
fn test<const N: usize>() {}
fn wow<'a>() -> &'a () {
test::<{
let _: &'a (); //[min]~ ERROR a non-static lifetime
3
}>();
&()
}
fn main() {}
|