Skip to content

Commit 4f6a819

Browse files
committed
Add simpl impl trait test for RPITIT
1 parent 6e5642f commit 4f6a819

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// check-pass
2+
// compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
3+
4+
#![feature(return_position_impl_trait_in_trait)]
5+
#![allow(incomplete_features)]
6+
7+
trait Foo {
8+
fn foo() -> impl Sized;
9+
}
10+
11+
impl Foo for String {
12+
fn foo() -> i32 {
13+
22
14+
}
15+
}
16+
17+
fn main() {}

0 commit comments

Comments
 (0)