This also enables two tests properly.
//! Types dealing with dynamic mutability
-#[missing_doc];
-
use prelude::*;
use cast;
use util::NonCopyable;
assert_eq!(a.init(), &[11]);
}
- #[init]
+ #[test]
#[should_fail]
fn test_init_empty() {
let a: ~[int] = ~[];
assert_eq!(a.initn(2), &[11]);
}
- #[init]
+ #[test]
#[should_fail]
fn test_initn_empty() {
let a: ~[int] = ~[];
struct A;
struct B;
-#[fmt="foo"]
impl fmt::Signed for A {
fn fmt(_: &A, f: &mut fmt::Formatter) { f.buf.write("aloha".as_bytes()); }
}