2023-07-29 04:48:42 -05:00
|
|
|
#![feature(const_trait_impl, effects)]
|
2022-01-11 09:52:24 -06:00
|
|
|
|
2022-03-16 04:49:54 -05:00
|
|
|
#[const_trait]
|
2022-01-11 09:52:24 -06:00
|
|
|
pub trait Tr {
|
|
|
|
fn a(&self) {}
|
|
|
|
|
|
|
|
fn b(&self) {
|
|
|
|
().a()
|
2023-07-29 04:48:42 -05:00
|
|
|
//~^ ERROR the trait bound
|
2022-01-11 09:52:24 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Tr for () {}
|
|
|
|
|
|
|
|
fn main() {}
|