Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(const_generics)]
- struct Struct<T>(T);
- impl<T, const N: usize> Struct<[T; N]> {
- fn f() {}
- fn g() { <Struct<[T; N]>>::f(); }
- }
- fn main() {
- let _ = Struct::<[i32; 0]>::g();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement