about summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs
blob: a506fceb4eff2052b6e81a35dbe16ac23ef17195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass
#![feature(const_param_types)]
#![allow(incomplete_features)]


trait Trait<const NAME: &'static str> {
    type Assoc;
}

impl Trait<"0"> for () {
    type Assoc = ();
}

fn main() {
    let _: <() as Trait<"0">>::Assoc = ();
}