]> git.lizzy.rs Git - rust.git/blob - tests/ui/enum_glob_use.rs
Merge pull request #3265 from mikerite/fix-export
[rust.git] / tests / ui / enum_glob_use.rs
1 // Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
3 //
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
9
10
11 #![feature(tool_lints)]
12
13 #![warn(clippy::all, clippy::pedantic)]
14 #![allow(unused_imports, dead_code, clippy::missing_docs_in_private_items)]
15
16 use std::cmp::Ordering::*;
17
18 enum Enum {
19     _Foo,
20 }
21
22 use self::Enum::*;
23
24 fn blarg() {
25     use self::Enum::*; // ok, just for a function
26 }
27
28 mod blurg {
29     pub use std::cmp::Ordering::*; // ok, re-export
30 }
31
32 mod tests {
33     use super::*;
34 }
35
36 #[allow(non_snake_case)]
37 mod CamelCaseName {
38 }
39
40 use CamelCaseName::*;
41
42 fn main() {}