mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
8 lines
180 B
Rust
8 lines
180 B
Rust
#![feature(adt_const_params, unsized_const_params)]
|
|
|
|
fn function_with_str<'a, const STRING: &'a str>() {} //~ ERROR E0770
|
|
|
|
fn main() {
|
|
function_with_str::<"Hello, world!">()
|
|
}
|