rust/tests/ui/rfcs/rfc-2632-const-trait-impl/default-method-body-is-const-same-trait-ck.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
199 B
Rust
Raw Normal View History

#![feature(const_trait_impl, effects)]
2022-01-11 09:52:24 -06:00
#[const_trait]
2022-01-11 09:52:24 -06:00
pub trait Tr {
fn a(&self) {}
fn b(&self) {
().a()
//~^ ERROR the trait bound
2022-01-11 09:52:24 -06:00
}
}
impl Tr for () {}
fn main() {}