From 7b47fd793fba4e0ce6c7fb4e50652bae0ff95fc0 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Mon, 20 Aug 2018 00:03:40 +0300 Subject: resolve: Reject some inaccessible candidates sooner during import resolution This allows import resolution to progress in cases like #53140 --- src/test/ui/imports/issue-53140.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/test/ui/imports/issue-53140.rs (limited to 'src/test') diff --git a/src/test/ui/imports/issue-53140.rs b/src/test/ui/imports/issue-53140.rs new file mode 100644 index 00000000000..dcfa054f251 --- /dev/null +++ b/src/test/ui/imports/issue-53140.rs @@ -0,0 +1,21 @@ +// Copyright 2018 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-pass + +mod m { + pub struct S(u8); + + use S as Z; +} + +use m::*; + +fn main() {} -- cgit 1.4.1-3-g733a5