rust/tests/ui/issues/issue-29668.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
240 B
Rust
Raw Normal View History

//@ run-pass
2015-11-21 14:38:17 +00:00
// 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);
}