File tree 2 files changed +18
-2
lines changed
tests/ui-toml/absolute_paths
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change
1
+ error: consider bringing this path into scope with the `use` keyword
2
+ --> tests/ui-toml/absolute_paths/absolute_paths_2015.rs:16:13
3
+ |
4
+ LL | let _ = ::m1::m2::X;
5
+ | ^^^^^^^^^^^
6
+ |
7
+ note: the lint level is defined here
8
+ --> tests/ui-toml/absolute_paths/absolute_paths_2015.rs:7:9
9
+ |
10
+ LL | #![deny(clippy::absolute_paths)]
11
+ | ^^^^^^^^^^^^^^^^^^^^^^
12
+
13
+ error: aborting due to 1 previous error
14
+
Original file line number Diff line number Diff line change 1
1
//@revisions: default allow_crates
2
2
//@[default]rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/absolute_paths/default
3
3
//@[allow_crates]rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/absolute_paths/allow_crates
4
+ //@[allow_crates]check-pass
4
5
//@edition:2015
5
- //@check-pass
6
6
7
7
#![ deny( clippy:: absolute_paths) ]
8
8
@@ -12,4 +12,6 @@ mod m1 {
12
12
}
13
13
}
14
14
15
- fn main ( ) { }
15
+ fn main ( ) {
16
+ let _ = :: m1:: m2:: X ; //~[default] absolute_paths
17
+ }
You can’t perform that action at this time.
0 commit comments