summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs-enums/export-abstract-tag.rs
blob: 76ac73321d3cbdd7fcc38c249e9d2caa948b9e90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
#![allow(non_camel_case_types)]

// We can export tags without exporting the variants to create a simple
// sort of ADT.

// pretty-expanded FIXME #23616

mod foo {
    pub enum t { t1, }

    pub fn f() -> t { return t::t1; }
}

pub fn main() { let _v: foo::t = foo::f(); }