This commit is contained in:
Jon Janzen
2021-08-21 18:23:05 -06:00
parent 758efbe61a
commit 5e3b932bc2

21
src/dumb.rs Normal file
View File

@@ -0,0 +1,21 @@
use std::{
future::Future,
pin::Pin,
task::{Context, Poll},
};
use tracing::info;
pub struct DumbFuture {}
impl Future for DumbFuture {
type Output = ();
fn poll(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Self::Output> {
unsafe {
*(0xF00D as *mut u64) = 0x0;
}
unreachable!();
}
}