rust/tests/ui/const-generics/issues/issue-66596-impl-trait-for-str-const-arg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
242 B
Rust
Raw Normal View History

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