mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
17 lines
242 B
Rust
17 lines
242 B
Rust
// check-pass
|
|
#![feature(adt_const_params)]
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
trait Trait<const NAME: &'static str> {
|
|
type Assoc;
|
|
}
|
|
|
|
impl Trait<"0"> for () {
|
|
type Assoc = ();
|
|
}
|
|
|
|
fn main() {
|
|
let _: <() as Trait<"0">>::Assoc = ();
|
|
}
|