15 lines
366 B
Rust
15 lines
366 B
Rust
|
// check-pass
|
||
|
|
||
|
#![feature(return_position_impl_trait_in_trait)]
|
||
|
//~^ WARN the feature `return_position_impl_trait_in_trait` is incomplete
|
||
|
|
||
|
trait Trait {
|
||
|
type Type;
|
||
|
|
||
|
// Check that we're adjusting bound vars correctly when installing the default
|
||
|
// method projection assumptions.
|
||
|
fn method(&self) -> impl Trait<Type = impl Sized + '_>;
|
||
|
}
|
||
|
|
||
|
fn main() {}
|