mirror of https://github.com/rust-lang/rust
10 lines
353 B
Rust
10 lines
353 B
Rust
const fn concat_strs<const A: &'static str>() -> &'static str {
|
|
//~^ ERROR &'static str` is forbidden as the type of a const generic parameter
|
|
struct Inner<const A: &'static str>;
|
|
//~^ ERROR &'static str` is forbidden as the type of a const generic parameter
|
|
Inner::concat_strs::<"a">::A
|
|
//~^ ERROR ambiguous associated type
|
|
}
|
|
|
|
pub fn main() {}
|