blob: b2ee96d79f70416480751f7f818c038e474c787a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![cfg_attr(feature_enabled, feature(const_trait_impl))]
trait Foo {
fn a(&self);
}
trait Bar: ~const Foo {}
const fn foo<T: ~const Bar>(x: &T) {
x.a();
}
fn main() {}
|