mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
20 lines
412 B
Rust
20 lines
412 B
Rust
// check-pass
|
|
|
|
#![feature(return_position_impl_trait_in_trait)]
|
|
|
|
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 + '_>;
|
|
}
|
|
|
|
trait Trait2 {
|
|
type Type;
|
|
|
|
fn method(&self) -> impl Trait2<Type = impl Trait2<Type = impl Sized + '_> + '_>;
|
|
}
|
|
|
|
fn main() {}
|