diff options
| author | kennytm <kennytm@gmail.com> | 2018-01-30 17:10:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-30 17:10:59 +0800 |
| commit | b83fb0f2de8365bcc8e5c304cc3f1791e125ae5d (patch) | |
| tree | 709217688d430b46978e372f032f891e422ff0c0 /src/test/ui/use-nested-groups-error.rs | |
| parent | 95572df8ebe7d7ae8b2e46e8b62b8f41bc1ee9a1 (diff) | |
| parent | 8389b66c1883a44d1d79b932313a40d9c6eb116e (diff) | |
| download | rust-b83fb0f2de8365bcc8e5c304cc3f1791e125ae5d.tar.gz rust-b83fb0f2de8365bcc8e5c304cc3f1791e125ae5d.zip | |
Rollup merge of #47853 - rust-lang:increase-nested-groups-test-coverage, r=nikomatsakis
Increase test coverage of use_nested_groups r? @nikomatsakis
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; +} |
