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.

17 lines
218 B
Rust
Raw Normal View History

2023-07-27 10:51:02 -05:00
// known-bug: #110395
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()
2023-07-27 10:51:02 -05:00
//FIXME ~^ ERROR the trait bound
2022-01-11 09:52:24 -06:00
}
}
impl Tr for () {}
fn main() {}