Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Somewhat facetiously:

    fn identity<T>(t: T) -> T { t }
Has no trait bounds, and is clearly generic. You typically can't do very much with completely free type variables, but Rust has syntactic support for them.


And even that implicitly relies on the Sized trait.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: