blob: e62662f2f077d432877576bfad1f8bcaf18876d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// compile-flags: --crate-type=lib
// check-pass
#![feature(return_position_impl_trait_in_trait)]
#![deny(refining_impl_trait)]
pub trait Tr<T> {
fn foo() -> impl for<'a> Tr<&'a Self>;
}
impl<T> Tr<T> for () {
fn foo() -> impl for<'a> Tr<&'a Self> {}
}
|