fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
831 B32 linesraw
1error: unused attribute
2  --> $DIR/lint-misplaced-attr.rs:7:5
3   |
4LL |     #![crate_type = "bin"]
5   |     ^^^^^^^^^^^^^^^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/lint-misplaced-attr.rs:4:9
9   |
10LL | #![deny(unused_attributes)]
11   |         ^^^^^^^^^^^^^^^^^
12
13error: crate-level attribute should be in the root module
14  --> $DIR/lint-misplaced-attr.rs:7:5
15   |
16LL |     #![crate_type = "bin"]
17   |     ^^^^^^^^^^^^^^^^^^^^^^
18
19error: unused attribute
20  --> $DIR/lint-misplaced-attr.rs:11:1
21   |
22LL | #[crate_type = "bin"] fn main() {}
23   | ^^^^^^^^^^^^^^^^^^^^^
24
25error: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]`
26  --> $DIR/lint-misplaced-attr.rs:11:1
27   |
28LL | #[crate_type = "bin"] fn main() {}
29   | ^^^^^^^^^^^^^^^^^^^^^
30
31error: aborting due to 4 previous errors
32