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