mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
14 lines
205 B
Rust
14 lines
205 B
Rust
//@ check-pass
|
|
|
|
#![feature(const_clone)]
|
|
#![feature(const_trait_impl)]
|
|
|
|
#[const_trait]
|
|
trait A where Self::Target: [const] Clone {
|
|
type Target;
|
|
}
|
|
|
|
const fn foo<T>() where T: [const] A {}
|
|
|
|
fn main() {}
|