File tree Expand file tree Collapse file tree 3 files changed +1376
-1367
lines changed
rust/ql/test/library-tests/type-inference Expand file tree Collapse file tree 3 files changed +1376
-1367
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ multipleCallTargets
55| dereference.rs:184:17:184:30 | ... .foo() |
66| dereference.rs:186:17:186:25 | S.bar(...) |
77| dereference.rs:187:17:187:29 | S.bar(...) |
8- | main.rs:2437 :13:2437 :31 | ...::from(...) |
9- | main.rs:2438 :13:2438 :31 | ...::from(...) |
10- | main.rs:2439 :13:2439 :31 | ...::from(...) |
11- | main.rs:2445 :13:2445 :31 | ...::from(...) |
12- | main.rs:2446 :13:2446 :31 | ...::from(...) |
13- | main.rs:2447 :13:2447 :31 | ...::from(...) |
8+ | main.rs:2442 :13:2442 :31 | ...::from(...) |
9+ | main.rs:2443 :13:2443 :31 | ...::from(...) |
10+ | main.rs:2444 :13:2444 :31 | ...::from(...) |
11+ | main.rs:2450 :13:2450 :31 | ...::from(...) |
12+ | main.rs:2451 :13:2451 :31 | ...::from(...) |
13+ | main.rs:2452 :13:2452 :31 | ...::from(...) |
Original file line number Diff line number Diff line change @@ -2040,6 +2040,10 @@ mod async_ {
20402040 async { S1 }
20412041 }
20422042
2043+ fn f3 ( ) -> impl Future < Output = ( ) > {
2044+ async { }
2045+ }
2046+
20432047 struct S2 ;
20442048
20452049 impl Future for S2 {
@@ -2053,14 +2057,15 @@ mod async_ {
20532057 }
20542058 }
20552059
2056- fn f3 ( ) -> impl Future < Output = S1 > {
2060+ fn f4 ( ) -> impl Future < Output = S1 > {
20572061 S2
20582062 }
20592063
20602064 pub async fn f ( ) {
20612065 f1 ( ) . await . f ( ) ; // $ target=S1f target=f1
20622066 f2 ( ) . await . f ( ) ; // $ target=S1f target=f2
2063- f3 ( ) . await . f ( ) ; // $ target=S1f target=f3
2067+ f3 ( ) . await ; // $ target=f3
2068+ f4 ( ) . await . f ( ) ; // $ target=S1f target=f4
20642069 S2 . await . f ( ) ; // $ target=S1f
20652070 let b = async { S1 } ;
20662071 b. await . f ( ) ; // $ target=S1f
You can’t perform that action at this time.
0 commit comments