2023-07-27 10:51:02 -05:00
|
|
|
// known-bug: #110395
|
2022-01-11 09:52:24 -06:00
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
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-27 10:51:02 -05:00
|
|
|
//FIXME ~^ ERROR the trait bound
|
2022-01-11 09:52:24 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Tr for () {}
|
|
|
|
|
|
|
|
fn main() {}
|