2022-05-06 10:57:23 -05:00
|
|
|
// [full] check-pass
|
2022-05-01 10:48:58 -05:00
|
|
|
// revisions: full min
|
|
|
|
|
|
|
|
// regression test for #78180
|
2020-07-19 11:53:51 -05:00
|
|
|
|
2021-08-27 11:04:57 -05:00
|
|
|
#![cfg_attr(full, feature(generic_const_exprs))]
|
2020-08-09 01:19:57 -05:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-07-19 11:53:51 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
fn test<const N: usize>() {}
|
|
|
|
|
|
|
|
fn wow<'a>() -> &'a () {
|
|
|
|
test::<{
|
2023-05-05 15:42:51 -05:00
|
|
|
let _: &'a (); //[min]~ ERROR generic parameters may not be used in const operations
|
2020-07-19 11:53:51 -05:00
|
|
|
3
|
|
|
|
}>();
|
|
|
|
&()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|