]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rust-2018/uniform-paths/prelude-fail-2.stderr
resolve: Prohibit use of imported tool modules
[rust.git] / src / test / ui / rust-2018 / uniform-paths / prelude-fail-2.stderr
1 error: cannot use a built-in attribute through an import
2   --> $DIR/prelude-fail-2.rs:17:3
3    |
4 LL | #[imported_inline] //~ ERROR cannot use a built-in attribute through an import
5    |   ^^^^^^^^^^^^^^^
6    |
7 note: the built-in attribute imported here
8   --> $DIR/prelude-fail-2.rs:6:5
9    |
10 LL | use inline as imported_inline;
11    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: cannot use a built-in attribute through an import
14   --> $DIR/prelude-fail-2.rs:18:3
15    |
16 LL | #[builtin::imported_inline] //~ ERROR cannot use a built-in attribute through an import
17    |   ^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: cannot use a tool module through an import
20   --> $DIR/prelude-fail-2.rs:19:3
21    |
22 LL | #[imported_rustfmt::skip] //~ ERROR cannot use a tool module through an import
23    |   ^^^^^^^^^^^^^^^^
24    |
25 note: the tool module imported here
26   --> $DIR/prelude-fail-2.rs:12:5
27    |
28 LL | use rustfmt as imported_rustfmt;
29    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: cannot use a tool module through an import
32   --> $DIR/prelude-fail-2.rs:20:13
33    |
34 LL | #[tool_mod::imported_rustfmt::skip] //~ ERROR cannot use a tool module through an import
35    |             ^^^^^^^^^^^^^^^^
36    |
37 note: the tool module imported here
38   --> $DIR/prelude-fail-2.rs:14:13
39    |
40 LL |     pub use rustfmt as imported_rustfmt;
41    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43 error: aborting due to 4 previous errors
44