fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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