blob: 7b38c15afc20b238a4566626b71dbb2232f4af4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#![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() {}
|