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