Removed warning of rustc 1.7.0 complaining about E0252. Trait Print has to be public...
authorStefan Disch <disch@informatik.uni-freiburg.de>
Sun, 6 Mar 2016 09:52:00 +0000 (10:52 +0100)
committerStefan Disch <disch@informatik.uni-freiburg.de>
Sun, 6 Mar 2016 09:52:00 +0000 (10:52 +0100)
workspace/src/part03.rs

index e3f16aea0d746d0ace460a7afa8daea2484df89a..384015681130ec3ecfce3eace2f7613484a61b4b 100644 (file)
@@ -57,7 +57,7 @@ pub fn main() {
 // Notice that I called the function on `SomethingOrNothing` `print2` to disambiguate from the `print` defined previously.
 // 
 // *Hint*: There is a macro `print!` for printing without appending a newline.
 // Notice that I called the function on `SomethingOrNothing` `print2` to disambiguate from the `print` defined previously.
 // 
 // *Hint*: There is a macro `print!` for printing without appending a newline.
-trait Print {
+pub trait Print {
     /* Add things here */
 }
 impl<T: Print> SomethingOrNothing<T> {
     /* Add things here */
 }
 impl<T: Print> SomethingOrNothing<T> {