2023-10-25 01:30:46 +00:00
|
|
|
//@ check-pass
|
2025-02-14 01:28:15 +00:00
|
|
|
//@ revisions: current next
|
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
|
|
//@[next] compile-flags: -Znext-solver
|
2023-10-25 01:30:46 +00:00
|
|
|
|
|
|
|
use std::ops::Deref;
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn foo() -> impl Deref<Target = impl Deref<Target = impl Sized>> {
|
|
|
|
&&()
|
|
|
|
}
|
2024-04-21 18:04:50 +02:00
|
|
|
|
|
|
|
fn bar() -> impl Deref<Target = Option<impl Sized>> {
|
|
|
|
&Some(())
|
|
|
|
}
|
2023-10-25 01:30:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|