]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/run-unexported-tests.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / test-attrs / run-unexported-tests.rs
1 // run-fail
2 // compile-flags:--test
3 // check-stdout
4
5 mod m {
6     pub fn exported() {}
7
8     #[test]
9     fn unexported() {
10         panic!("ran an unexported test");
11     }
12 }