mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 12:50:37 +00:00

Check if the #[task] macro properly handles unsafe functions so the `unsafe_op_in_unsafe_fn` lint still works
11 lines
216 B
Rust
11 lines
216 B
Rust
#![cfg_attr(feature = "nightly", feature(impl_trait_in_assoc_type))]
|
|
#![deny(unsafe_op_in_unsafe_fn)]
|
|
|
|
#[embassy_executor::task]
|
|
async unsafe fn task() {
|
|
let x = 5;
|
|
(&x as *const i32).read();
|
|
}
|
|
|
|
fn main() {}
|