rust/tests/ui/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
190 B
Rust
Raw Normal View History

2022-01-11 09:52:24 -06:00
#![feature(const_trait_impl)]
#[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() {}