mirror of https://github.com/rust-lang/rust.git
19 lines
363 B
Rust
19 lines
363 B
Rust
//@ check-pass
|
|
//@ revisions: current next
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
//@[next] compile-flags: -Znext-solver
|
|
|
|
use std::ops::Deref;
|
|
|
|
trait Foo {
|
|
fn foo() -> impl Deref<Target = impl Deref<Target = impl Sized>> {
|
|
&&()
|
|
}
|
|
|
|
fn bar() -> impl Deref<Target = Option<impl Sized>> {
|
|
&Some(())
|
|
}
|
|
}
|
|
|
|
fn main() {}
|