blob: 0c2d93775a4d7324772ed28a2c03568976023222 [file] [log] [blame] [edit]
//@ compile-flags: -Znext-solver
#![allow(incomplete_features)]
#![feature(const_trait_impl, effects)]
#[const_trait]
pub trait Tr {
fn a(&self) {}
fn b(&self) {
().a()
//~^ ERROR the trait bound `(): ~const Tr` is not satisfied
}
}
impl Tr for () {}
fn main() {}