blob: 7b38c15afc20b238a4566626b71dbb2232f4af4d [file] [log] [blame]
#![feature(const_trait_impl)]
trait Foo {
fn a(&self);
}
trait Bar: ~const Foo {}
const fn foo<T: Bar>(x: &T) {
x.a();
//~^ ERROR the trait bound
//~| ERROR cannot call
}
fn main() {}