1 error: cannot use a built-in attribute through an import
2 --> $DIR/prelude-fail-2.rs:17:3
4 LL | #[imported_inline] //~ ERROR cannot use a built-in attribute through an import
7 note: the built-in attribute imported here
8 --> $DIR/prelude-fail-2.rs:6:5
10 LL | use inline as imported_inline;
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: cannot use a built-in attribute through an import
14 --> $DIR/prelude-fail-2.rs:18:3
16 LL | #[builtin::imported_inline] //~ ERROR cannot use a built-in attribute through an import
17 | ^^^^^^^^^^^^^^^^^^^^^^^^
19 error: cannot use a tool module through an import
20 --> $DIR/prelude-fail-2.rs:19:3
22 LL | #[imported_rustfmt::skip] //~ ERROR cannot use a tool module through an import
25 note: the tool module imported here
26 --> $DIR/prelude-fail-2.rs:12:5
28 LL | use rustfmt as imported_rustfmt;
29 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 error: cannot use a tool module through an import
32 --> $DIR/prelude-fail-2.rs:20:13
34 LL | #[tool_mod::imported_rustfmt::skip] //~ ERROR cannot use a tool module through an import
37 note: the tool module imported here
38 --> $DIR/prelude-fail-2.rs:14:13
40 LL | pub use rustfmt as imported_rustfmt;
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
43 error: aborting due to 4 previous errors