blob: df2f3b7918cf948af96304137d2801927cd021cb (
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 generic parameters may not be used in const operations
3
}>();
&()
}
fn main() {}
|