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