]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/issue-66596-impl-trait-for-str-const-arg.rs
pin docs: add some forward references
[rust.git] / src / test / ui / const-generics / issue-66596-impl-trait-for-str-const-arg.rs
1 // check-pass
2
3 #![feature(const_generics)]
4 //~^ WARN the feature `const_generics` is incomplete
5
6 trait Trait<const NAME: &'static str> {
7     type Assoc;
8 }
9
10 impl Trait<"0"> for () {
11     type Assoc = ();
12 }
13
14 fn main() {
15     let _: <() as Trait<"0">>::Assoc = ();
16 }