summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-29668.rs
blob: 3d6c27bcda145cbed9ea05cbc334eab08824318a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-pass
// Functions can return unnameable types

mod m1 {
    mod m2 {
        #[derive(Debug)]
        pub struct A;
    }
    use self::m2::A;
    pub fn x() -> A { A }
}

fn main() {
    let x = m1::x();
    println!("{:?}", x);
}