rust/tests/ui/async-await/async-fn/edition-2015-not-async-bound.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
174 B
Rust
Raw Normal View History

2024-01-26 11:15:43 -06:00
//@ 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() {}