//! Regression test for ICE https://github.com/rust-lang/rust/issues/135730 //! This used use std::future::Future; fn foo() -> impl ?Future { //~^ ERROR: bound modifier `?` can only be applied to `Sized` //~| ERROR: bound modifier `?` can only be applied to `Sized` () } pub fn main() {}