rust/tests/ui/impl-trait/opt-out-bound-not-satisfied.rs

12 lines
338 B
Rust

//! Regression test for ICE https://github.com/rust-lang/rust/issues/135730
//! This used
use std::future::Future;
fn foo() -> impl ?Future<Output = impl Send> {
//~^ ERROR: relaxing a default bound only does something for `?Sized`
//~| ERROR: relaxing a default bound only does something for `?Sized`
()
}
pub fn main() {}