mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-18 19:32:02 +00:00
18 lines
254 B
Rust
18 lines
254 B
Rust
//@ check-pass
|
|
//@ compile-flags: -Znext-solver
|
|
#![feature(const_trait_impl)]
|
|
|
|
#[const_trait]
|
|
trait Trait {
|
|
type Assoc<T: ~const Bound>;
|
|
}
|
|
|
|
impl const Trait for () {
|
|
type Assoc<T: ~const Bound> = T;
|
|
}
|
|
|
|
#[const_trait]
|
|
trait Bound {}
|
|
|
|
fn main() {}
|