Last active
December 17, 2015 10:28
-
-
Save AyeGill/5594548 to your computer and use it in GitHub Desktop.
This code failed to cause an ICE.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct V<T>(int); | |
| impl<T> V<T> { | |
| fn new() -> V<T> { | |
| V(12) | |
| } | |
| fn foo(self, val : T) { | |
| let mut i = 0; | |
| while i < *self { | |
| println(fmt!("%?", val)); | |
| i += 1; | |
| } | |
| } | |
| } | |
| fn main() { | |
| let f : V<&str> = V::new(); | |
| f.foo("foo"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment