summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues/issue-61432.rs
blob: 0440468e9e6228e4782906ac91636a0e26c420eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass

#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete

fn promote<const N: i32>() {
    // works:
    //
    // let n = N;
    // &n;

    &N;
}

fn main() {
    promote::<0>();
}