mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
20 lines
336 B
Rust
20 lines
336 B
Rust
// compile-flags: --test -D unnameable_test_items
|
|
|
|
#[test]
|
|
fn foo() {
|
|
#[test] //~ ERROR cannot test inner items [unnameable_test_items]
|
|
fn bar() {}
|
|
bar();
|
|
}
|
|
|
|
mod x {
|
|
#[test]
|
|
fn foo() {
|
|
#[test] //~ ERROR cannot test inner items [unnameable_test_items]
|
|
fn bar() {}
|
|
bar();
|
|
}
|
|
}
|
|
|
|
fn main() {}
|