2024-02-16 20:02:50 +00:00
|
|
|
//@ compile-flags: --crate-type=lib
|
|
|
|
|
//@ check-pass
|
2023-09-25 15:00:38 +00:00
|
|
|
|
|
|
|
|
#![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> {}
|
|
|
|
|
}
|