Skip to content

Commit

Permalink
Add simpl impl trait test for RPITIT
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Mar 3, 2023
1 parent 6e5642f commit 4f6a819
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// check-pass
// compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty

#![feature(return_position_impl_trait_in_trait)]
#![allow(incomplete_features)]

trait Foo {
fn foo() -> impl Sized;
}

impl Foo for String {
fn foo() -> i32 {
22
}
}

fn main() {}

0 comments on commit 4f6a819

Please sign in to comment.