]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/in-trait/bad-signatures.stderr
Rollup merge of #107186 - GuillaumeGomez:correct-pseudo-element-selector, r=notriddle
[rust.git] / tests / ui / async-await / in-trait / bad-signatures.stderr
1 error: expected identifier, found keyword `self`
2   --> $DIR/bad-signatures.rs:7:23
3    |
4 LL |     async fn bar(&abc self);
5    |                       ^^^^ expected identifier, found keyword
6
7 error: expected one of `:`, `@`, or `|`, found keyword `self`
8   --> $DIR/bad-signatures.rs:7:23
9    |
10 LL |     async fn bar(&abc self);
11    |                  -----^^^^
12    |                  |    |
13    |                  |    expected one of `:`, `@`, or `|`
14    |                  help: declare the type after the parameter binding: `<identifier>: <type>`
15
16 warning: the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
17   --> $DIR/bad-signatures.rs:3:12
18    |
19 LL | #![feature(async_fn_in_trait)]
20    |            ^^^^^^^^^^^^^^^^^
21    |
22    = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
23    = note: `#[warn(incomplete_features)]` on by default
24
25 error: aborting due to 2 previous errors; 1 warning emitted
26