about summary refs log tree commit diff
path: root/tests/ui/const-generics/generic_const_exprs/convert-refree-region-vid-ice-114464.rs
blob: f58fd12e4d356e96b31f22ac1293d887cb340340 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// ICE cannot convert Refree.. to a region vid
// issue: rust-lang/rust#114464

#![feature(generic_const_exprs)]
#![allow(incomplete_features)]

fn test<const N: usize>() {}

fn wow<'a>() {
    test::<{
        let _: &'a ();
        //~^ ERROR cannot capture late-bound lifetime in constant
        3
    }>();
}

fn main() {}