2024-10-02 19:42:06 +08:00
|
|
|
//@ compile-flags: -Znext-solver
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
#![feature(const_trait_impl, effects)]
|
2022-01-11 23:52:24 +08:00
|
|
|
|
2022-03-16 20:49:54 +11:00
|
|
|
#[const_trait]
|
2022-01-11 23:52:24 +08:00
|
|
|
pub trait Tr {
|
|
|
|
fn a(&self) {}
|
|
|
|
|
|
|
|
fn b(&self) {
|
|
|
|
().a()
|
2024-10-02 19:42:06 +08:00
|
|
|
//~^ ERROR the trait bound `(): ~const Tr` is not satisfied
|
2022-01-11 23:52:24 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Tr for () {}
|
|
|
|
|
|
|
|
fn main() {}
|