I heard from several sources that Rust does not have a default integer type, that is neither int nor uint are supposed to be used everywhere, but rather only for indexing.
First of all: Is this true?
If so, I think this should be reflected in the documentation, and also important, it should be reflected in the code examples and tests, where usually just uint is chosen, when for example pushing things into a vector or constructing a tree, or similar. As an example, see the Vec docs (as of 2014-08-12):
let mut vec = Vec::new();
vec.push(1i);
vec.push(2i);
assert_eq!(vec.len(), 2);
assert_eq!(vec[0], 1);
assert_eq!(vec.pop(), Some(2));
assert_eq!(vec.len(), 1);
*vec.get_mut(0) = 7i;
assert_eq!(vec[0], 7);
vec.push_all([1, 2, 3]);
for x in vec.iter() {
println!("{}", x);
}
assert_eq!(vec, vec![7i, 1, 2, 3]);