about summary refs log tree commit diff
path: root/tests/ui/async-await/async-fn/edition-2015-not-async-bound.rs
blob: 60a7dff7d499a763044b0feb7f55c817463e0bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ edition:2015
//@ check-pass
// Make sure that we don't eagerly recover `async ::Bound` in edition 2015.

mod async {
    pub trait Foo {}
}

fn test(x: impl async ::Foo) {}

fn main() {}