2022-05-06 15:57:23 +00:00
|
|
|
// [full] check-pass
|
2022-05-01 15:48:58 +00:00
|
|
|
// revisions: full min
|
|
|
|
|
|
|
|
// regression test for #78180
|
|
|
|
// compile-flags: -Zsave-analysis
|
2020-07-19 16:53:51 +00:00
|
|
|
|
2021-08-27 16:04:57 +00: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 16:53:51 +00:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
fn test<const N: usize>() {}
|
|
|
|
|
|
|
|
fn wow<'a>() -> &'a () {
|
|
|
|
test::<{
|
2022-05-01 15:48:58 +00:00
|
|
|
let _: &'a (); //[min]~ ERROR a non-static lifetime
|
2020-07-19 16:53:51 +00:00
|
|
|
3
|
|
|
|
}>();
|
|
|
|
&()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|