2020-04-09 00:57:27 +01:00
|
|
|
// check-pass
|
|
|
|
|
|
|
|
|
|
#![feature(const_generics)]
|
2020-04-22 10:21:32 +02:00
|
|
|
//~^ WARN the feature `const_generics` is incomplete
|
2020-04-09 00:57:27 +01:00
|
|
|
|
|
|
|
|
trait Trait<const NAME: &'static str> {
|
|
|
|
|
type Assoc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl Trait<"0"> for () {
|
|
|
|
|
type Assoc = ();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let _: <() as Trait<"0">>::Assoc = ();
|
|
|
|
|
}
|