File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
rust/ql/test/library-tests/type-inference Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -1810,6 +1810,12 @@ mod indexers {
1810
1810
}
1811
1811
}
1812
1812
1813
+ mod macros {
1814
+ pub fn f ( ) {
1815
+ let x = format ! ( "Hello, {}" , "World!" ) ; // $ MISSING: type=x:String
1816
+ }
1817
+ }
1818
+
1813
1819
fn main ( ) {
1814
1820
field_access:: f ( ) ;
1815
1821
method_impl:: f ( ) ;
@@ -1832,4 +1838,5 @@ fn main() {
1832
1838
async_:: f ( ) ;
1833
1839
impl_trait:: f ( ) ;
1834
1840
indexers:: f ( ) ;
1841
+ macros:: f ( ) ;
1835
1842
}
Original file line number Diff line number Diff line change @@ -2642,9 +2642,13 @@ inferType
2642
2642
| main.rs:1809:24:1809:25 | xs | | file://:0:0:0:0 | [] |
2643
2643
| main.rs:1809:24:1809:25 | xs | [T;...] | main.rs:1764:5:1765:13 | S |
2644
2644
| main.rs:1809:24:1809:25 | xs | [T] | main.rs:1764:5:1765:13 | S |
2645
- | main.rs:1815:5:1815:20 | ...::f(...) | | main.rs:67:5:67:21 | Foo |
2646
- | main.rs:1816:5:1816:60 | ...::g(...) | | main.rs:67:5:67:21 | Foo |
2647
- | main.rs:1816:20:1816:38 | ...::Foo {...} | | main.rs:67:5:67:21 | Foo |
2648
- | main.rs:1816:41:1816:59 | ...::Foo {...} | | main.rs:67:5:67:21 | Foo |
2649
- | main.rs:1832:5:1832:15 | ...::f(...) | | {EXTERNAL LOCATION} | trait Future |
2645
+ | main.rs:1815:25:1815:35 | "Hello, {}" | | {EXTERNAL LOCATION} | str |
2646
+ | main.rs:1815:25:1815:45 | ...::format(...) | | {EXTERNAL LOCATION} | String |
2647
+ | main.rs:1815:25:1815:45 | { ... } | | {EXTERNAL LOCATION} | String |
2648
+ | main.rs:1815:38:1815:45 | "World!" | | {EXTERNAL LOCATION} | str |
2649
+ | main.rs:1821:5:1821:20 | ...::f(...) | | main.rs:67:5:67:21 | Foo |
2650
+ | main.rs:1822:5:1822:60 | ...::g(...) | | main.rs:67:5:67:21 | Foo |
2651
+ | main.rs:1822:20:1822:38 | ...::Foo {...} | | main.rs:67:5:67:21 | Foo |
2652
+ | main.rs:1822:41:1822:59 | ...::Foo {...} | | main.rs:67:5:67:21 | Foo |
2653
+ | main.rs:1838:5:1838:15 | ...::f(...) | | {EXTERNAL LOCATION} | trait Future |
2650
2654
testFailures
You can’t perform that action at this time.
0 commit comments