Skip to content

Commit 211f79d

Browse files
Fix tests/ui-toml/absolute_paths/absolute_paths_2015.rs test
1 parent cc915cc commit 211f79d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed
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: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 numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//@revisions: default allow_crates
22
//@[default]rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/absolute_paths/default
33
//@[allow_crates]rustc-env:CLIPPY_CONF_DIR=tests/ui-toml/absolute_paths/allow_crates
4+
//@[allow_crates]check-pass
45
//@edition:2015
5-
//@check-pass
66

77
#![deny(clippy::absolute_paths)]
88

@@ -12,4 +12,6 @@ mod m1 {
1212
}
1313
}
1414

15-
fn main() {}
15+
fn main() {
16+
let _ = ::m1::m2::X; //~[default] absolute_paths
17+
}

0 commit comments

Comments
 (0)