2019-06-20 08:52:31 +00:00
|
|
|
error: cannot determine resolution for the attribute macro `bench`
|
|
|
|
--> $DIR/issue-43106-gating-of-bench.rs:7:4
|
2019-07-18 23:10:36 +00:00
|
|
|
|
|
|
|
|
LL | #![bench = "4100"]
|
2019-06-20 08:52:31 +00:00
|
|
|
| ^^^^^
|
2019-07-20 00:14:11 +00:00
|
|
|
|
|
2019-06-20 08:52:31 +00:00
|
|
|
= note: import resolution is stuck, try simplifying macro imports
|
2017-12-06 08:27:47 +00:00
|
|
|
|
2021-10-09 12:13:15 +00:00
|
|
|
error: `bench` attribute cannot be used at crate level
|
|
|
|
--> $DIR/issue-43106-gating-of-bench.rs:7:1
|
|
|
|
|
|
|
|
|
LL | #![bench = "4100"]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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 = "4100"]
|
|
|
|
LL + #[bench = "4100"]
|
2021-10-09 12:13:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2017-12-06 08:27:47 +00:00
|
|
|
|