We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 775ccad commit 998a3bbCopy full SHA for 998a3bb
src/libstd/cast.rs
@@ -123,7 +123,7 @@ mod tests {
123
fn test_bump_managed_refcount() {
124
unsafe {
125
let managed = @~"box box box"; // refcount 1
126
- bump_managed_refcount(managed); // refcount 2
+ bump_box_refcount(managed); // refcount 2
127
let ptr: *int = transmute(managed); // refcount 2
128
let _box1: @~str = ::cast::transmute_copy(&ptr);
129
let _box2: @~str = ::cast::transmute_copy(&ptr);
src/test/run-pass/new-box-syntax.rs
@@ -1,7 +1,7 @@
1
/* Any copyright is dedicated to the Public Domain.
2
* http://creativecommons.org/publicdomain/zero/1.0/ */
3
4
-fn main() {
+pub fn main() {
5
let x: ~int = box 3;
6
println!("{}", *x);
7
}
0 commit comments