16 lines
190 B
Rust
16 lines
190 B
Rust
#![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() {}
|