2021-08-27 11:04:57 -05:00
|
|
|
// check-pass
|
2021-08-30 03:59:53 -05:00
|
|
|
#![feature(adt_const_params)]
|
2021-08-27 11:04:57 -05:00
|
|
|
#![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 = ();
|
|
|
|
}
|