Created
February 24, 2013 06:49
-
-
Save jld/5022917 to your computer and use it in GitHub Desktop.
Test case for a compiler bug I introduced locally. Order of evaluation is important in affine-land.
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 S { f0: ~str, f1: int } | |
| pub fn main() { | |
| let s = ~"Hello, world!"; | |
| let _s = S { f0: str::from_slice(s), ..S { f0: s, f1: 23 } }; | |
| io::println(_s.f0); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment