mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
16 lines
199 B
Rust
16 lines
199 B
Rust
#![feature(const_trait_impl, effects)]
|
|
|
|
#[const_trait]
|
|
pub trait Tr {
|
|
fn a(&self) {}
|
|
|
|
fn b(&self) {
|
|
().a()
|
|
//~^ ERROR the trait bound
|
|
}
|
|
}
|
|
|
|
impl Tr for () {}
|
|
|
|
fn main() {}
|