diff options
Diffstat (limited to 'tests/ui/resolve/issue-90113.rs')
-rw-r--r-- | tests/ui/resolve/issue-90113.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-90113.rs b/tests/ui/resolve/issue-90113.rs new file mode 100644 index 000000000..f6658b45e --- /dev/null +++ b/tests/ui/resolve/issue-90113.rs @@ -0,0 +1,21 @@ +mod list { + pub use self::List::Cons; + + pub enum List<T> { + Cons(T, Box<List<T>>), + } +} + +mod alias { + use crate::list::List; + + pub type Foo = List<String>; +} + +fn foo(l: crate::alias::Foo) { + match l { + Cons(..) => {} //~ ERROR: cannot find tuple struct or tuple variant `Cons` in this scope + } +} + +fn main() {} |