error: Invalid attribute: priority = bad
--> tests/errors/ctor_bad_priority.rs:3:1
|
3 | #[ctor(priority = bad)]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `$crate::__ctor_features` which comes from the expansion of the attribute macro `ctor` (in Nightly builds, run with -Z macro-backtrace for more info)
error: Priority must not be specified if naked, export_name_prefix, or link_section are specified.
--> tests/errors/ctor_bad_priority.rs:7:1
|
7 | #[ctor(naked, priority = 1)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `$crate::__map_priority` which comes from the expansion of the attribute macro `ctor` (in Nightly builds, run with -Z macro-backtrace for more info)
error: Priority must not be specified if naked, export_name_prefix, or link_section are specified.
--> tests/errors/ctor_bad_priority.rs:11:1
|
11 | #[ctor(export_name_prefix = "foo", priority = 1)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `$crate::__map_priority` which comes from the expansion of the attribute macro `ctor` (in Nightly builds, run with -Z macro-backtrace for more info)
error: Priority must not be specified if naked, export_name_prefix, or link_section are specified.
--> tests/errors/ctor_bad_priority.rs:15:1
|
15 | #[ctor(link_section = ".ctors", priority = 1)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `$crate::__map_priority` which comes from the expansion of the attribute macro `ctor` (in Nightly builds, run with -Z macro-backtrace for more info)