2024-07-14 13:38:51 +01:00
|
|
|
#![feature(adt_const_params, unsized_const_params)]
|
|
|
|
|
//~^ WARN the feature `unsized_const_params` is incomplete
|
2020-07-04 23:43:48 -04:00
|
|
|
|
2023-05-05 21:42:51 +01:00
|
|
|
fn function_with_str<'a, const STRING: &'a str>() {} //~ ERROR E0770
|
2020-07-04 23:43:48 -04:00
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
function_with_str::<"Hello, world!">()
|
|
|
|
|
}
|