2022-06-28 15:46:15 -05:00
|
|
|
// compile-flags: -Wrust-2021-incompatible-closure-captures
|
|
|
|
|
|
|
|
pub struct A {}
|
|
|
|
|
|
|
|
impl A {
|
2023-02-28 01:55:19 -06:00
|
|
|
async fn create(path: impl AsRef<std::path::Path>) {
|
2022-06-28 15:46:15 -05:00
|
|
|
;
|
2023-02-28 01:55:19 -06:00
|
|
|
crate(move || {} ).await
|
2022-06-28 15:46:15 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-28 01:55:19 -06:00
|
|
|
trait C{async fn new(val: T) {} //~ ERROR this file contains an unclosed delimiter
|