deal with opaque types without cycling
This commit is contained in:
parent
3adedc93a9
commit
b5b3f33940
7 changed files with 95 additions and 230 deletions
10
tests/ui/impl-trait/recursive-auto-trait.rs
Normal file
10
tests/ui/impl-trait/recursive-auto-trait.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
// check-pass
|
||||
fn is_send<T: Send>(_: T) {}
|
||||
fn foo() -> impl Send {
|
||||
if false {
|
||||
is_send(foo());
|
||||
}
|
||||
()
|
||||
}
|
||||
|
||||
fn main() {}
|
Loading…
Add table
Add a link
Reference in a new issue