20 lines
295 B
Rust
20 lines
295 B
Rust
// check-pass
|
|
|
|
#![feature(return_position_impl_trait_in_trait)]
|
|
#![allow(incomplete_features)]
|
|
|
|
struct Wrapper<T>(T);
|
|
|
|
trait Foo {
|
|
fn bar() -> Wrapper<impl Sized>;
|
|
}
|
|
|
|
impl Foo for () {
|
|
#[allow(refining_impl_trait)]
|
|
fn bar() -> Wrapper<i32> {
|
|
Wrapper(0)
|
|
}
|
|
}
|
|
|
|
fn main() {}
|