diff options
| author | bors <bors@rust-lang.org> | 2018-01-30 11:10:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-01-30 11:10:06 +0000 |
| commit | def3269a71be2e737cad27418a3dad9f5bd6cd32 (patch) | |
| tree | 1b6a3bf9de28edffa1c9ac671aa066d1c079e35d /src/test/ui/use-nested-groups-error.rs | |
| parent | fe7e1a45f37f4265434cead827f587e75412f85c (diff) | |
| parent | 393a1994af93977fe1e35fb4ec308bc4e5d1a6dd (diff) | |
| download | rust-def3269a71be2e737cad27418a3dad9f5bd6cd32.tar.gz rust-def3269a71be2e737cad27418a3dad9f5bd6cd32.zip | |
Auto merge of #47870 - kennytm:rollup, r=kennytm
Rollup of 12 pull requests - Successful merges: #47515, #47603, #47718, #47732, #47760, #47780, #47822, #47826, #47836, #47839, #47853, #47855 - Failed merges:
Diffstat (limited to 'src/test/ui/use-nested-groups-error.rs')
| -rw-r--r-- | src/test/ui/use-nested-groups-error.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/ui/use-nested-groups-error.rs b/src/test/ui/use-nested-groups-error.rs new file mode 100644 index 00000000000..a9b6b3ee70d --- /dev/null +++ b/src/test/ui/use-nested-groups-error.rs @@ -0,0 +1,27 @@ +// 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 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(use_nested_groups)] + +mod a { + pub mod b1 { + pub enum C2 {} + } + + pub enum B2 {} +} + +use a::{b1::{C1, C2}, B2}; +//~^ ERROR unresolved import `a::b1::C1` + +fn main() { + let _: C2; + let _: B2; +} |
