1
Fork 0

Add simple trait test

This commit is contained in:
Santiago Pastorino 2023-03-02 16:45:57 -03:00
parent f77bfb7336
commit 12b81a5734
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -0,0 +1,11 @@
// 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;
}
fn main() {}