blob: f70ecbc3746f992c8b4974a4a6dccc3b950e42f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(const_trait_impl)]
#[const_trait]
pub trait Tr {
fn a(&self) {}
fn b(&self) {
().a()
//~^ ERROR the trait bound
}
}
impl Tr for () {}
fn main() {}
|