File tree Expand file tree Collapse file tree 2 files changed +619
-612
lines changed
rust/ql/test/library-tests/type-inference Expand file tree Collapse file tree 2 files changed +619
-612
lines changed Original file line number Diff line number Diff line change @@ -2332,6 +2332,8 @@ mod loops {
2332
2332
for u in [ 0u8 ..10 ] { } // $ type=u:Range type=u:Idx.u8
2333
2333
let range = 0 ..10 ; // $ type=range:Range type=range:Idx.i32
2334
2334
for i in range { } // $ type=i:i32
2335
+ let range_full = ..; // $ MISSING: type=range_full:RangeFull
2336
+ for i in & [ 1i64 , 2i64 , 3i64 ] [ range_full] { } // $ target=index MISSING: type=i:&T.i64
2335
2337
2336
2338
let range1 = // $ type=range1:Range type=range1:Idx.u16
2337
2339
std:: ops:: Range {
@@ -2558,25 +2560,23 @@ pub mod exec {
2558
2560
pub mod path_buf {
2559
2561
// a highly simplified model of `PathBuf::canonicalize`
2560
2562
2561
- pub struct Path {
2562
- }
2563
+ pub struct Path { }
2563
2564
2564
2565
impl Path {
2565
2566
pub const fn new ( ) -> Path {
2566
- Path { }
2567
+ Path { }
2567
2568
}
2568
2569
2569
2570
pub fn canonicalize ( & self ) -> Result < PathBuf , ( ) > {
2570
2571
Ok ( PathBuf :: new ( ) ) // $ target=new
2571
2572
}
2572
2573
}
2573
2574
2574
- pub struct PathBuf {
2575
- }
2575
+ pub struct PathBuf { }
2576
2576
2577
2577
impl PathBuf {
2578
2578
pub const fn new ( ) -> PathBuf {
2579
- PathBuf { }
2579
+ PathBuf { }
2580
2580
}
2581
2581
}
2582
2582
@@ -2587,7 +2587,7 @@ pub mod path_buf {
2587
2587
#[ inline]
2588
2588
fn deref ( & self ) -> & Path {
2589
2589
// (very much not a real implementation)
2590
- static path : Path = Path :: new ( ) ; // $ target=new
2590
+ static path: Path = Path :: new ( ) ; // $ target=new
2591
2591
& path
2592
2592
}
2593
2593
}
You can’t perform that action at this time.
0 commit comments