]> git.lizzy.rs Git - rust.git/blob - tests/ui-internal/invalid_paths.rs
Fix `manual_map` at the end of an if chain
[rust.git] / tests / ui-internal / invalid_paths.rs
1 #![warn(clippy::internal)]
2
3 mod paths {
4     // Good path
5     pub const ANY_TRAIT: [&str; 3] = ["std", "any", "Any"];
6
7     // Path to method on inherent impl of a primitive type
8     pub const F32_EPSILON: [&str; 4] = ["core", "f32", "<impl f32>", "EPSILON"];
9
10     // Path to method on inherent impl
11     pub const ARC_PTR_EQ: [&str; 4] = ["alloc", "sync", "Arc", "ptr_eq"];
12
13     // Path with empty segment
14     pub const TRANSMUTE: [&str; 4] = ["core", "intrinsics", "", "transmute"];
15
16     // Path with bad crate
17     pub const BAD_CRATE_PATH: [&str; 2] = ["bad", "path"];
18
19     // Path with bad module
20     pub const BAD_MOD_PATH: [&str; 2] = ["std", "xxx"];
21
22     // Path to method on an enum inherent impl
23     pub const OPTION_IS_SOME: [&str; 4] = ["core", "option", "Option", "is_some"];
24 }
25
26 fn main() {}