//@ known-bug: rust-lang/rust#125810 #![feature(arbitrary_self_types, dispatch_from_dyn)] use std::ops::{Deref, DispatchFromDyn}; trait Trait + DispatchFromDyn> { fn MONO_BUF(self: T) -> dyn Trait; } fn main() {}