blob: 169627149a3005f11218260cf826476bbe764e6c [file]
//@ check-pass
//@ compile-flags: -Znext-solver
#![feature(const_trait_impl)]
const trait Foo {
fn a(&self);
}
const trait Bar: [const] Foo {}
struct S;
impl const Foo for S {
fn a(&self) {}
}
impl const Bar for S {}
const fn foo<T: [const] Bar>(t: &T) {
t.a();
}
const _: () = foo(&S);
fn main() {}