2020-07-19 12:53:51 -04:00
|
|
|
// run-pass
|
2020-08-09 06:19:57 +00:00
|
|
|
// revisions: full
|
2020-08-10 18:50:58 +00:00
|
|
|
// FIXME(#75323) Omitted min revision for now due to ICE.
|
2020-07-19 12:53:51 -04:00
|
|
|
|
2020-08-09 06:19:57 +00:00
|
|
|
#![cfg_attr(full, feature(const_generics))]
|
|
|
|
#![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::<{
|
|
|
|
let _: &'a ();
|
|
|
|
3
|
|
|
|
}>();
|
|
|
|
&()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|