rust/src/test/run-fail/run-unexported-tests.rs

15 lines
234 B
Rust
Raw Normal View History

// error-pattern:runned an unexported test
// compile-flags:--test
extern mod std;
mod m {
#[legacy_exports];
export exported;
fn exported() { }
#[test]
fn unexported() { fail ~"runned an unexported test"; }
}