blob: 97ab07daccefb94843eac8d33c3ebd3dceca98ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// run-pass
// revisions: full min
#![cfg_attr(full, feature(const_generics))] //[full]~WARN the feature `const_generics` is incomplete
fn promote<const N: i32>() {
// works:
//
// let n = N;
// let _ = &n;
let _ = &N;
}
fn main() {
promote::<0>();
}
|