fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
563 B20 linesraw
1error: crate-level attribute should be in the root module
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 an inner attribute: add an exclamation mark: `#![foo]`
14  --> $DIR/lint-misplaced-attr.rs:10:1
15   |
16LL | #[crate_type = "bin"] fn main() {}
17   | ^^^^^^^^^^^^^^^^^^^^^
18
19error: aborting due to 2 previous errors
20