about summary refs log tree commit diff
path: root/tests/ui/impl-trait/opt-out-bound-not-satisfied.rs
blob: 7e0e1eadf9c75b3631243128266f752915f4436a (plain)
1
2
3
4
5
6
7
8
9
10
11
//! 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: bound modifier `?` can only be applied to `Sized`
    //~| ERROR: bound modifier `?` can only be applied to `Sized`
    ()
}

pub fn main() {}