fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: the following explicit lifetimes could be elided: 'a 2 --> $DIR/issue_4266.rs:4:16 3 | 4LL | async fn sink1<'a>(_: &'a str) {} // lint 5 | ^^ ^^ 6 | 7 = note: `-D clippy::needless-lifetimes` implied by `-D warnings` 8 = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]` 9 10error: the following explicit lifetimes could be elided: 'a 11 --> $DIR/issue_4266.rs:10:21 12 | 13LL | async fn one_to_one<'a>(s: &'a str) -> &'a str { 14 | ^^ ^^ 15 16error: methods called `new` usually take no `self` 17 --> $DIR/issue_4266.rs:31:22 18 | 19LL | pub async fn new(&mut self) -> Self { 20 | ^^^^^^^^^ 21 | 22 = help: consider choosing a less ambiguous name 23 = note: `-D clippy::wrong-self-convention` implied by `-D warnings` 24 = help: to override `-D warnings` add `#[allow(clippy::wrong_self_convention)]` 25 26error: aborting due to 3 previous errors 27