Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
287 B
Rust
Raw Normal View History

2023-03-20 13:20:28 -03:00
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
2022-09-23 00:56:55 +00:00
#![feature(return_position_impl_trait_in_trait)]
use std::ops::Deref;
2022-09-23 00:56:55 +00:00
pub trait Foo {
fn bar() -> impl Deref<Target = impl Sized>;
2022-09-23 00:56:55 +00:00
}
pub struct Foreign;
impl Foo for Foreign {
fn bar() -> &'static () { &() }
2022-09-23 00:56:55 +00:00
}