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.

12 lines
159 B
Rust
Raw Normal View History

2022-09-22 19:56:55 -05:00
#![feature(return_position_impl_trait_in_trait)]
pub trait Foo {
fn bar() -> impl Sized;
}
pub struct Foreign;
impl Foo for Foreign {
fn bar() {}
}