use the correct ParamEnv when checking future's return type in missing_errors_doc
This commit is contained in:
parent
b8e569e9c0
commit
15ab2ff55a
2 changed files with 28 additions and 2 deletions
19
tests/ui/crashes/ice-13862.rs
Normal file
19
tests/ui/crashes/ice-13862.rs
Normal 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue