2023-03-06 14:49:50 -03:00

18 lines
274 B
Rust

// 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() {}