summaryrefslogtreecommitdiffstats
path: root/tests/ui/test-attrs/run-unexported-tests.rs
blob: f533a3ef885d6737e2d8dec18e8f9d16226cd3da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-fail
// compile-flags:--test
// check-stdout

mod m {
    pub fn exported() {}

    #[test]
    fn unexported() {
        panic!("ran an unexported test");
    }
}