about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/const-assoc-bound-in-trait-wc.rs
blob: 81acce65f2a9d4b67edceb578fe8a8ad9b9ab858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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() {}