rust/tests/ui/traits/const-traits/default-method-body-is-const-same-trait-ck.rs
Michael Goulet e91267f3f0 Move tests
2024-10-22 00:03:09 +00:00

18 lines
296 B
Rust

//@ 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() {}