mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
274 B
Rust
13 lines
274 B
Rust
//@ compile-flags: -Wrust-2021-incompatible-closure-captures
|
|
|
|
pub struct A {}
|
|
|
|
impl A {
|
|
async fn create(path: impl AsRef<std::path::Path>) {
|
|
;
|
|
crate(move || {} ).await
|
|
}
|
|
}
|
|
|
|
trait C{async fn new(val: T) {} //~ ERROR this file contains an unclosed delimiter
|