]> git.lizzy.rs Git - rust.git/blob - tests/ui/resolve/issue-90113.rs
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / resolve / issue-90113.rs
1 mod list {
2     pub use self::List::Cons;
3
4     pub enum List<T> {
5         Cons(T, Box<List<T>>),
6     }
7 }
8
9 mod alias {
10     use crate::list::List;
11
12     pub type Foo = List<String>;
13 }
14
15 fn foo(l: crate::alias::Foo) {
16     match l {
17         Cons(..) => {} //~ ERROR: cannot find tuple struct or tuple variant `Cons` in this scope
18     }
19 }
20
21 fn main() {}