Skip to content

Commit

Permalink
Add simple impl trait test for RPITIT
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Mar 6, 2023
1 parent b1efed4 commit 5daa01e
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 5daa01e

Please sign in to comment.