Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::any::Any;
- use std::fmt::Debug;
- fn funny<T>(t: T) where T: Any + Sized + Debug {
- println!("{:?}", t);
- }
- fn main() {
- let value = true;
- let suck_fn = suck(value);
- funny(true)
- }
- fn suck<T: Any + Sized>(t:T) -> (Fn(bool) -> T) {
- unimplemented!();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement