Add simple trait test
This commit is contained in:
parent
f77bfb7336
commit
12b81a5734
1 changed files with 11 additions and 0 deletions
|
@ -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() {}
|
Loading…
Add table
Add a link
Reference in a new issue