2021-10-09 12:13:15 +00:00
|
|
|
error: `derive` attribute cannot be used at crate level
|
|
|
|
--> $DIR/issue-36617.rs:1:1
|
|
|
|
|
|
|
|
|
LL | #![derive(Copy)]
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2023-10-18 00:24:21 +00:00
|
|
|
...
|
|
|
|
LL | fn main() {}
|
|
|
|
| ---- the inner attribute doesn't annotate this function
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
2023-10-18 00:24:21 +00:00
|
|
|
LL - #![derive(Copy)]
|
|
|
|
LL + #[derive(Copy)]
|
|
|
|
|
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
error: `test` attribute cannot be used at crate level
|
|
|
|
--> $DIR/issue-36617.rs:4:1
|
|
|
|
|
|
|
|
|
LL | #![test]
|
|
|
|
| ^^^^^^^^
|
2023-10-18 00:24:21 +00:00
|
|
|
...
|
|
|
|
LL | fn main() {}
|
|
|
|
| ---- the inner attribute doesn't annotate this function
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
2023-10-18 00:24:21 +00:00
|
|
|
LL - #![test]
|
|
|
|
LL + #[test]
|
|
|
|
|
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
error: `test_case` attribute cannot be used at crate level
|
|
|
|
--> $DIR/issue-36617.rs:7:1
|
|
|
|
|
|
|
|
|
LL | #![test_case]
|
|
|
|
| ^^^^^^^^^^^^^
|
2023-10-18 00:24:21 +00:00
|
|
|
...
|
|
|
|
LL | fn main() {}
|
|
|
|
| ---- the inner attribute doesn't annotate this function
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
2023-10-18 00:24:21 +00:00
|
|
|
LL - #![test_case]
|
|
|
|
LL + #[test_case]
|
|
|
|
|
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
error: `bench` attribute cannot be used at crate level
|
|
|
|
--> $DIR/issue-36617.rs:10:1
|
|
|
|
|
|
|
|
|
LL | #![bench]
|
|
|
|
| ^^^^^^^^^
|
2023-10-18 00:24:21 +00:00
|
|
|
...
|
|
|
|
LL | fn main() {}
|
|
|
|
| ---- the inner attribute doesn't annotate this function
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
2023-10-18 00:24:21 +00:00
|
|
|
LL - #![bench]
|
|
|
|
LL + #[bench]
|
|
|
|
|
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
error: `global_allocator` attribute cannot be used at crate level
|
|
|
|
--> $DIR/issue-36617.rs:13:1
|
|
|
|
|
|
|
|
|
LL | #![global_allocator]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2023-10-18 00:24:21 +00:00
|
|
|
...
|
|
|
|
LL | fn main() {}
|
|
|
|
| ---- the inner attribute doesn't annotate this function
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
|
help: perhaps you meant to use an outer attribute
|
|
|
|
|
|
2023-10-18 00:24:21 +00:00
|
|
|
LL - #![global_allocator]
|
|
|
|
LL + #[global_allocator]
|
|
|
|
|
|
2021-10-09 12:13:15 +00:00
|
|
|
|
2024-01-27 11:09:55 +00:00
|
|
|
error: aborting due to 5 previous errors
|
2018-07-15 21:11:54 +00:00
|
|
|
|