mirror of https://github.com/rust-lang/rust.git
17 lines
390 B
Rust
17 lines
390 B
Rust
// Test for unsafe attributes generated by a proc-macro.
|
|
// See https://github.com/rust-lang/rust/issues/132906
|
|
|
|
//@ revisions: edition2021 edition2024
|
|
//@ check-pass
|
|
//@[edition2021] edition:2021
|
|
//@[edition2024] edition:2024
|
|
//@ proc-macro: unsafe-attributes-pm.rs
|
|
|
|
unsafe_attributes_pm::missing_unsafe!();
|
|
|
|
unsafe_attributes_pm::macro_rules_missing_unsafe!();
|
|
|
|
make_fn!();
|
|
|
|
fn main() {}
|