mirror of https://github.com/rust-lang/rust.git
12 lines
338 B
Rust
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() {}
|