Files
rust/tests/ui/traits/const-traits/const-assoc-bound-in-trait-wc.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
205 B
Rust
Raw Normal View History

//@ 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() {}