This file contains 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
System: | |
rustc 0.11.0-pre-nightly (022a7b3 2014-05-22 01:06:25 -0700) | |
host: x86_64-apple-darwin | |
Error: | |
main.rs:14:2: 14:7 error: mismatched types: expected `Box A` but found `~B` (expected trait A but found box) | |
main.rs:14 box B | |
^~~~~ | |
error: aborting due to previous error |
This file contains 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
/* | |
Everything is in a single crate. The directory structure is as follows: | |
. | |
├── b | |
│ └── mod.rs | |
├── c | |
│ └── mod.rs | |
├── d | |
│ └── mod.rs |
This file contains 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
pub fn parse(munny: &Munny, day: &time::Tm, tokens: &mut ~[~str]) { | |
if tokens.len() < 1 { | |
fail!("Too few arguments!") | |
} | |
// Pop adjustment string. | |
let mut set = false; | |
let mut adj_str = vec::pop(tokens); | |
// See if there's a '=' preceding it. If so, note that and slice it. |