2023-09-02 16:29:27 -05:00
|
|
|
#![feature(generic_const_exprs)]
|
|
|
|
//~^ WARN the feature `generic_const_exprs` is incomplete
|
|
|
|
|
|
|
|
fn test<'a>(
|
|
|
|
_: &'a (),
|
2023-10-31 08:45:26 -05:00
|
|
|
) -> [(); { //~ ERROR: mismatched types
|
2023-09-02 16:29:27 -05:00
|
|
|
let x: &'a ();
|
|
|
|
//~^ ERROR cannot capture late-bound lifetime in constant
|
|
|
|
1
|
|
|
|
}] {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|