mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
11 lines
250 B
Rust
11 lines
250 B
Rust
|
//@ known-bug: rust-lang/rust#125810
|
||
|
#![feature(arbitrary_self_types, dispatch_from_dyn)]
|
||
|
|
||
|
use std::ops::{Deref, DispatchFromDyn};
|
||
|
|
||
|
trait Trait<T: Deref<Target = Self> + DispatchFromDyn<T>> {
|
||
|
fn MONO_BUF(self: T) -> dyn Trait<T>;
|
||
|
}
|
||
|
|
||
|
fn main() {}
|