rust/tests/ui/impl-trait/in-trait/nested-rpitit-bounds.rs
2024-02-16 20:02:50 +00:00

12 lines
156 B
Rust

//@ check-pass
use std::ops::Deref;
trait Foo {
fn foo() -> impl Deref<Target = impl Deref<Target = impl Sized>> {
&&()
}
}
fn main() {}