Skip to content

Commit 3fd49a0

Browse files
committed
test 2015
1 parent e99594c commit 3fd49a0

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: consider bringing this path into scope with the `use` keyword
2+
--> tests/ui-toml/absolute_paths/absolute_paths_2015.rs:15: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:6:9
9+
|
10+
LL | #![deny(clippy::absolute_paths)]
11+
| ^^^^^^^^^^^^^^^^^^^^^^
12+
13+
error: aborting due to 1 previous error
14+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//@revisions: default allow_crates
2+
//@[default]rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/absolute_paths/default
3+
//@[allow_crates]rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/absolute_paths/allow_crates
4+
//@edition:2015
5+
6+
#![deny(clippy::absolute_paths)]
7+
8+
mod m1 {
9+
pub mod m2 {
10+
pub struct X;
11+
}
12+
}
13+
14+
fn main() {
15+
let _ = ::m1::m2::X; //~[default] absolute_paths
16+
}

0 commit comments

Comments
 (0)