mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
8ed5e6744f
Fixes #114464
18 lines
328 B
Rust
18 lines
328 B
Rust
// 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() {}
|