rust/tests/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs
2023-01-11 09:32:08 +00:00

17 lines
242 B
Rust

// check-pass
#![feature(adt_const_params)]
#![allow(incomplete_features)]
trait Trait<const NAME: &'static str> {
type Assoc;
}
impl Trait<"0"> for () {
type Assoc = ();
}
fn main() {
let _: <() as Trait<"0">>::Assoc = ();
}