]> git.lizzy.rs Git - rust.git/blob - src/test/ui/test-attrs/run-unexported-tests.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 }