Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (10 sloc) 287 Bytes
// 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(); }
You can’t perform that action at this time.