rust/tests/ui/crashes/ice-13862.rs
2025-01-09 18:57:00 +01:00

19 lines
347 B
Rust

#![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
}