]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | error: expected identifier, found keyword `Self` |
2 | --> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:4:17 | |
3 | | | |
4 | LL | fn foo(&mur Self) {} | |
5 | | ^^^^ expected identifier, found keyword | |
6 | ||
7 | error: expected one of `:`, `@`, or `|`, found keyword `Self` | |
8 | --> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:4:17 | |
9 | | | |
10 | LL | fn foo(&mur Self) {} | |
11 | | -----^^^^ | |
12 | | | | | |
13 | | | expected one of `:`, `@`, or `|` | |
14 | | help: declare the type after the parameter binding: `<identifier>: <type>` | |
15 | ||
16 | error: unexpected lifetime `'static` in pattern | |
17 | --> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:8:13 | |
18 | | | |
19 | LL | fn bar(&'static mur Self) {} | |
20 | | ^^^^^^^ help: remove the lifetime | |
21 | ||
22 | error: expected identifier, found keyword `Self` | |
23 | --> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:8:25 | |
24 | | | |
25 | LL | fn bar(&'static mur Self) {} | |
26 | | ^^^^ expected identifier, found keyword | |
27 | ||
28 | error: expected one of `:`, `@`, or `|`, found keyword `Self` | |
29 | --> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:8:25 | |
30 | | | |
31 | LL | fn bar(&'static mur Self) {} | |
32 | | -------------^^^^ | |
33 | | | | | |
34 | | | expected one of `:`, `@`, or `|` | |
35 | | help: declare the type after the parameter binding: `<identifier>: <type>` | |
36 | ||
37 | error: expected one of `:`, `@`, or `|`, found keyword `Self` | |
38 | --> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:14:17 | |
39 | | | |
40 | LL | fn baz(&mur Self @ _) {} | |
41 | | ^^^^ expected one of `:`, `@`, or `|` | |
42 | ||
43 | error: the `Self` constructor can only be used with tuple or unit structs | |
44 | --> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:4:17 | |
45 | | | |
46 | LL | fn foo(&mur Self) {} | |
47 | | ^^^^ help: use curly brackets: `Self { /* fields */ }` | |
48 | ||
49 | error: the `Self` constructor can only be used with tuple or unit structs | |
50 | --> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:8:25 | |
51 | | | |
52 | LL | fn bar(&'static mur Self) {} | |
53 | | ^^^^ help: use curly brackets: `Self { /* fields */ }` | |
54 | ||
55 | error: aborting due to 8 previous errors | |
56 |