1
Fork 0

deal with opaque types without cycling

This commit is contained in:
lcnr 2022-01-19 17:35:26 +01:00 committed by Oleksandr Babak
parent 3adedc93a9
commit b5b3f33940
No known key found for this signature in database
GPG key ID: B21CA2CAC0240BB9
7 changed files with 95 additions and 230 deletions

View file

@ -0,0 +1,10 @@
// check-pass
fn is_send<T: Send>(_: T) {}
fn foo() -> impl Send {
if false {
is_send(foo());
}
()
}
fn main() {}