2021-08-27 11:04:57 -05:00
|
|
|
#![feature(const_param_types)]
|
|
|
|
//~^ WARN the feature `const_param_types` is incomplete
|
2020-07-04 22:43:48 -05:00
|
|
|
|
|
|
|
fn function_with_str<'a, const STRING: &'a str>() {} //~ ERROR E0771
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
function_with_str::<"Hello, world!">()
|
|
|
|
}
|