summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs
blob: 091419f0c52ec822bc80c4a427b4a2083f9a6ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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 = ();
}