v2 / vlib / v / parser / tests / generic_fn_export_err.out
5 lines · 5 sloc · 237 bytes · 34d9790f14a5926b0f416d42c3297e98b407570b
Raw
1vlib/v/parser/tests/generic_fn_export_err.vv:1:1: error: generic functions cannot be exported
2 1 | @[export: "sort_array"]
3 | ~~~~~~~~~~~~~~~~~~~~~~~
4 2 | pub fn sort_array[T](mut arr []T) {
5 3 | arr.sort(|a, b| a < b)
6