blob: 646a664ffc3720bb6b5d5453ddc51beb750b1b81 [file] [log] [blame] [edit]
//@ check-pass
//@ edition:2018
struct Test(String);
impl Test {
async fn borrow_async(&self) {}
fn with(&mut self, s: &str) -> &mut Self {
self.0 = s.into();
self
}
}
async fn test() {
Test("".to_string()).with("123").borrow_async().await;
}
fn main() { }