Skip to content

Commit b72786a

Browse files
committed
update test/compile-fail/destructor-restrictions since box <expr> is feature gated for alpha.
1 parent 4c12b4e commit b72786a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/compile-fail/destructor-restrictions.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ use std::cell::RefCell;
1414

1515
fn main() {
1616
let b = {
17-
let a = box RefCell::new(4i);
18-
*a.borrow() + 1i //~ ERROR `*a` does not live long enough
17+
let a = Box::new(RefCell::new(4i8));
18+
*a.borrow() + 1i8 //~ ERROR `*a` does not live long enough
1919
};
2020
println!("{}", b);
2121
}

0 commit comments

Comments
 (0)