dumb
This commit is contained in:
21
src/dumb.rs
Normal file
21
src/dumb.rs
Normal 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!();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user