diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-01-29 17:11:09 +0100 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2018-01-29 17:11:09 +0100 |
| commit | 8389b66c1883a44d1d79b932313a40d9c6eb116e (patch) | |
| tree | c5ac321268ebbba46750cb5bd9d33f146e8b2931 /src/test/ui/use-nested-groups-error.rs | |
| parent | 21882aad7299e8e859785845ac12374990f24dae (diff) | |
| download | rust-8389b66c1883a44d1d79b932313a40d9c6eb116e.tar.gz rust-8389b66c1883a44d1d79b932313a40d9c6eb116e.zip | |
Increase test coverage of use_nested_groups
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; +} |
