error: Missing unsafe keyword in #[ctor] annotation. Use #[ctor(unsafe)]. This error can be suppressed by passing `--cfg no_fail_on_missing_unsafe` in `RUSTFLAGS` or placing this in your `config.toml` file.
#[ctor]
^^^^^^^------- replace this with #[ctor(unsafe)]
--> tests/errors/ctor_no_unsafe_struct.rs:8:5
|
8 | #[ctor]
| ^^^^^^^
|
= note: this error originates in the macro `$crate::__ctor_parse_impl` which comes from the expansion of the attribute macro `ctor` (in Nightly builds, run with -Z macro-backtrace for more info)