diff options
Diffstat (limited to 'src/test/ui/async-await/issue-61949-self-return-type.stderr')
-rw-r--r-- | src/test/ui/async-await/issue-61949-self-return-type.stderr | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/async-await/issue-61949-self-return-type.stderr b/src/test/ui/async-await/issue-61949-self-return-type.stderr new file mode 100644 index 000000000..52b726e18 --- /dev/null +++ b/src/test/ui/async-await/issue-61949-self-return-type.stderr @@ -0,0 +1,9 @@ +error[E0760]: `async fn` return type cannot contain a projection or `Self` that references lifetimes from a parent scope + --> $DIR/issue-61949-self-return-type.rs:10:40 + | +LL | pub async fn new(_bar: &'a i32) -> Self { + | ^^^^ help: consider spelling out the type instead: `Foo<'a>` + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0760`. |