use the correct ParamEnv when checking future's return type in missing_errors_doc

This commit is contained in:
y21 2024-12-21 21:09:40 +01:00
parent b8e569e9c0
commit 15ab2ff55a
2 changed files with 28 additions and 2 deletions

View file

@ -0,0 +1,19 @@
#![crate_type = "lib"]
#![no_std]
use core::future::Future;
use core::pin::Pin;
use core::task::{Context, Poll};
pub struct S<const N: u8>;
impl<const N: u8> Future for S<N> {
type Output = ();
fn poll(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Self::Output> {
todo!()
}
}
pub fn f<const N: u8>() -> S<N> {
S
}