-// edition:2018
#![allow(dead_code)]
+#![allow(clippy::uninlined_format_args)]
async fn sink1<'a>(_: &'a str) {} // lint
async fn sink1_elided(_: &str) {} // ok
struct Foo;
impl Foo {
// ok
- pub async fn foo(&mut self) {}
+ pub async fn new(&mut self) -> Self {
+ Foo {}
+ }
}
// rust-lang/rust#61115