Skip to content

Commit 8ed5e67

Browse files
committed
add test for #114464
Fixes #114464
1 parent db68dc2 commit 8ed5e67

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// ICE cannot convert Refree.. to a region vid
2+
// issue: rust-lang/rust#114464
3+
4+
#![feature(generic_const_exprs)]
5+
#![allow(incomplete_features)]
6+
7+
fn test<const N: usize>() {}
8+
9+
fn wow<'a>() {
10+
test::<{
11+
let _: &'a ();
12+
//~^ ERROR cannot capture late-bound lifetime in constant
13+
3
14+
}>();
15+
}
16+
17+
fn main() {}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error: cannot capture late-bound lifetime in constant
2+
--> $DIR/convert-refree-region-vid-ice-114464.rs:11:17
3+
|
4+
LL | fn wow<'a>() {
5+
| -- lifetime defined here
6+
LL | test::<{
7+
LL | let _: &'a ();
8+
| ^^
9+
10+
error: aborting due to 1 previous error
11+

0 commit comments

Comments
 (0)