We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67d35b6 commit c1214c9Copy full SHA for c1214c9
2 files changed
tests/unit/out/refcount/simple_index.rs
@@ -11,8 +11,8 @@ pub fn main() {
11
}
12
fn main_0() -> i32 {
13
let v: Value<Vec<bool>> = Rc::new(RefCell::new(vec![true]));
14
- return ((*(v.as_pointer() as Ptr<bool>)
+ return (((*(v.as_pointer() as Ptr<bool>)
15
.offset(0_u64 as isize)
16
.upgrade()
17
- .deref()) as i32);
+ .deref()) as bool) as i32);
18
tests/unit/out/unsafe/simple_index.rs
@@ -13,5 +13,5 @@ pub fn main() {
unsafe fn main_0() -> i32 {
let mut v: Vec<bool> = vec![true];
- return (v[(0_u64) as usize] as i32);
+ return ((v[(0_u64) as usize] as bool) as i32);
0 commit comments