mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
a42adf2f95
Fixes #114463
11 lines
360 B
Rust
11 lines
360 B
Rust
// issue: rust-lang/rust#114463
|
|
// ICE cannot convert `ReFree ..` to a region vid
|
|
#![feature(generic_const_exprs)]
|
|
//~^ WARN the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
|
|
fn bug<'a>() {
|
|
[(); (|_: &'a u8| (), 0).1];
|
|
//~^ ERROR cannot capture late-bound lifetime in constant
|
|
}
|
|
|
|
pub fn main() {}
|