aboutsummaryrefslogtreecommitdiff
path: root/src/test/compile-fail/export-tag-variant.rs
blob: 5af6b07cf1ead60a16ef0719323145db86b158df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// xfail-boot
// error-pattern: unresolved name

mod foo {
  export x;

  fn x() {
  }

  tag y {
    y1;
  }
}

fn main() {
  auto z = foo::y1;
}