This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
2
Packages
Projects
Releases
Wiki
Activity
Files
b3827e4f3728b77bd3e60587487ebfc3cc8d901b
rust
/
tests
/
ui
/
box
/
alloc-unstable.rs
6 lines
98 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ run-pass
Support custom allocators in `Box` Remove `Box::leak_with_alloc` Add leak-test for box with allocator Rename `AllocErr` to `AllocError` in leak-test Add `Box::alloc` and adjust examples to use the new API
2020-10-06 16:37:23 +02:00
#![
feature(allocator_api)
]
fn
main
(
)
{
let
_boxed
:
Box
<
u32
,
_
>
=
Box
::
new
(
10
)
;
}
Reference in New Issue
Copy Permalink