Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 21st, 2019
84
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.13 KB
| None
|
0
0
raw
download
clone
embed
print
report
pub fn foo(arg: &[i32]) -> Box<[i32]> {
Box::new(arg)
}
fn main() {
let y = foo(&[1, 2, 3]);
println!("{}", y.len())
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 35 min ago | 0.38 KB
Untitled
JavaScript | 37 min ago | 2.56 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 44 min ago | 0.39 KB
2024-04-17_stats.json
JSON | 1 hour ago | 4.10 KB
2024-04-17_stats.json
JSON | 1 hour ago | 4.10 KB
2024-04-17_stats.json
JSON | 1 hour ago | 4.07 KB
Whitelister
Lua | 1 hour ago | 23.32 KB
Startup -- Turtle
Lua | 1 hour ago | 1.28 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!