blob: 4c4cc7697f7eb2e059d98f04faa450800e1baa0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#![cfg_attr(feature = "nightly", feature(impl_trait_in_assoc_type))]
use core::future::Future;
use embassy_executor::SendSpawner;
#[embassy_executor::task]
async fn task(non_send: *mut ()) {
println!("{}", non_send as usize);
}
fn send_spawn(s: SendSpawner) {
s.spawn(task(core::ptr::null_mut())).unwrap();
}
fn main() {}
|