File tree Expand file tree Collapse file tree 3 files changed +266
-262
lines changed
rust/ql/test/library-tests/path-resolution Expand file tree Collapse file tree 3 files changed +266
-262
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ fn i() {
75
75
76
76
{
77
77
struct Foo {
78
- x : i32 ,
78
+ x : i32 , // $ MISSING: item=i32
79
79
} // I30
80
80
81
81
let _ = Foo { x : 0 } ; // $ item=I30
@@ -121,9 +121,13 @@ mod m6 {
121
121
122
122
mod m7 {
123
123
pub enum MyEnum {
124
- A ( i32 ) , // I42
125
- B { x : i32 } , // I43
126
- C , // I44
124
+ A (
125
+ i32 , // $ MISSING: item=i32
126
+ ) , // I42
127
+ B {
128
+ x : i32 , // $ MISSING: item=i32
129
+ } , // I43
130
+ C , // I44
127
131
} // I41
128
132
129
133
#[ rustfmt:: skip]
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ type Result<
25
25
> ; // my::Result
26
26
27
27
fn int_div (
28
- x : i32 , //
29
- y : i32 ,
30
- ) -> Result < i32 > // $ item=my::Result
28
+ x : i32 , // $ MISSING: item=i32
29
+ y : i32 , // $ MISSING: item=i32
30
+ ) -> Result < i32 > // $ item=my::Result $ MISSING: item=i32
31
31
{
32
32
if y == 0 {
33
33
return Err ( "Div by zero" . to_string ( ) ) ;
You can’t perform that action at this time.
0 commit comments