rust/tests/ui/test-attrs/custom-test-frameworks/issue-107454.rs
2024-02-16 20:02:50 +00:00

11 lines
207 B
Rust

//@ compile-flags: --test
#![feature(custom_test_frameworks)]
#![deny(unnameable_test_items)]
fn foo() {
#[test_case]
//~^ ERROR cannot test inner items [unnameable_test_items]
fn test2() {}
}