Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- foo(&[1, 2, 3][0..2]);
- }
- fn foo(a: &[i32]) {
- println!("{:?}", a);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement