Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let x = [
- [1, 2, 3, 4],
- [5, 6, 7, 8],
- [9, 10, 11, 12],
- [13, 14, 15, 16]
- ];
- eggs(x);
- }
- fn eggs<T: AsRef<[impl AsRef<[usize]>]>>(x: T) {
- println!("{}", x.as_ref()[2].as_ref()[2]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement