rust/tests/ui/impl-trait/in-trait/auxiliary/rpitit.rs

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

14 lines
225 B
Rust
Raw Normal View History

2023-03-20 16:20:28 +00: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)]
pub trait Foo {
fn bar() -> impl Sized;
}
pub struct Foreign;
impl Foo for Foreign {
fn bar() {}
}