-// If this printed `3`, then you generic `vec_min` is working!
-//
-// Before going on, take a moment to ponder the flexibility of Rust's take on abstraction:
-// We just defined our own, custom trait (interface), and then implemented that trait
-// *for an existing type*. With the hierarchical approach of, e.g., C++ or Java,
-// that's not possible: We cannot make an existing type suddenly also inherit from our abstract base class.
-
-// **Exercise**: Define a trait `Print` to write a generic version of `SomethingOrNothing::print`.
-// Implement that trait for `i32`, and change the code above to use it.
-// I will again provide a skeleton for this solution. It also shows how to attach bounds to generic
-// implementations (just compare it to the `impl` block from the previous exercise).
-// You can read this as "For all types `T` satisfying the `Print` trait, I provide an implementation
-// for `SomethingOrNothing<T>`".
-//
-// Notice that I called the function on `SomethingOrNothing` `print2` to disambiguate from the `print` defined above.
-//
-// *Hint*: There is a macro `print!` for printing without appending a newline.
-trait Print {
- /* Add things here */
-}
-impl<T: Print> SomethingOrNothing<T> {
- fn print2(self) {
- panic!("Not yet implemented.")
- }
-}