summary refs log tree commit diff
path: root/src/test/ui/const-generics/issue-66596-impl-trait-for-str-const-arg.rs
blob: 74f036e6d89b57d3c06b59d1bf2a91f83fcc0c66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass

#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete

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

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

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