blob: ffeabe5c2edabd52387d5a1e6ba38dc19985c03d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
#![feature(return_position_impl_trait_in_trait)]
use std::ops::Deref;
pub trait Foo {
fn bar() -> impl Deref<Target = impl Sized>;
}
pub struct Foreign;
impl Foo for Foreign {
fn bar() -> &'static () { &() }
}
|