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
macro_rules! recurse { | |
($prop_name:ident: $prop_type:ty) => ( | |
println!("{}: {}", stringify!($prop_name), stringify!($prop_type)); | |
); | |
($($prop_name:ident: $prop_type:ty),*) => ( | |
recurse!($($prop_name: $prop_type),*); | |
); | |
} | |
fn main() { |
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
running 1 test | |
test it_works ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured | |
Doc-tests ironentities | |
/Users/jarred/blah/rust/src/lib.rs:2:1: 2:18 error: multiple rlib candidates for `log` found | |
/Users/jarred/blah/rust/src/lib.rs:2 extern crate log; | |
^~~~~~~~~~~~~~~~~ | |
/Users/jarred/blah/rust/src/lib.rs:2:1: 2:18 note: candidate #1: /Users/jarred/blah/rust/target/debug/deps/liblog-045aab9d45b4c031.rlib |
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
QString::Data *QString::fromLatin1_helper(const char *str, int size) | |
{ | |
Data *d; | |
if (!str) { | |
d = Data::sharedNull(); | |
} else if (size == 0 || (!*str && size < 0)) { | |
d = Data::allocate(0); | |
} else { | |
if (size < 0) | |
size = qstrlen(str); |
NewerOlder