Skip to content

Commit 5daa01e

Browse files
committed
Add simple impl trait test for RPITIT
1 parent b1efed4 commit 5daa01e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
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)