spell the real selftype

This commit is contained in:
csmoe 2021-02-13 14:45:53 +08:00
parent ed40b95925
commit 5385a3d6a7
2 changed files with 33 additions and 36 deletions

View file

@ -4,7 +4,7 @@ error[E0760]: `async fn` return type cannot contain a projection or `Self` that
LL | async fn new(i: &'a i32) -> Result<Self, ()> {
| ^^^^^^^----^^^^^
| |
| help: consider spelling out the type instead: `std::result::Result<S<'a>, ()>`
| help: consider spelling out the type instead: `S<'a>`
error: aborting due to previous error