blob: 2371dfc0e6d089cbc0544019d6f06aa436c68a2a (
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() {}
|