2020-03-30 08:40:23 +02:00
|
|
|
error: expected identifier, found keyword `Self`
|
|
|
|
|
--> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:4:17
|
|
|
|
|
|
|
|
|
|
|
LL | fn foo(&mur Self) {}
|
|
|
|
|
| ^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
|
|
error: expected one of `:`, `@`, or `|`, found keyword `Self`
|
|
|
|
|
--> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:4:17
|
|
|
|
|
|
|
|
|
|
|
LL | fn foo(&mur Self) {}
|
2024-09-02 12:43:35 -04:00
|
|
|
| ^^^^ expected one of `:`, `@`, or `|`
|
|
|
|
|
|
|
|
|
|
|
help: there is a keyword `mut` with a similar name
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - fn foo(&mur Self) {}
|
|
|
|
|
LL + fn foo(&mut Self) {}
|
|
|
|
|
|
|
2020-03-30 08:40:23 +02:00
|
|
|
|
|
|
|
|
error: unexpected lifetime `'static` in pattern
|
|
|
|
|
--> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:8:13
|
|
|
|
|
|
|
|
|
|
|
LL | fn bar(&'static mur Self) {}
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: remove the lifetime
|
|
|
|
|
|
|
|
|
|
|
LL - fn bar(&'static mur Self) {}
|
|
|
|
|
LL + fn bar(&mur Self) {}
|
|
|
|
|
|
|
2020-03-30 08:40:23 +02:00
|
|
|
|
|
|
|
|
error: expected identifier, found keyword `Self`
|
|
|
|
|
--> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:8:25
|
|
|
|
|
|
|
|
|
|
|
LL | fn bar(&'static mur Self) {}
|
|
|
|
|
| ^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
|
|
error: expected one of `:`, `@`, or `|`, found keyword `Self`
|
|
|
|
|
--> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:8:25
|
|
|
|
|
|
|
|
|
|
|
LL | fn bar(&'static mur Self) {}
|
2024-09-02 12:43:35 -04:00
|
|
|
| ^^^^ expected one of `:`, `@`, or `|`
|
|
|
|
|
|
|
|
|
|
|
help: there is a keyword `mut` with a similar name
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - fn bar(&'static mur Self) {}
|
|
|
|
|
LL + fn bar(&'static mut Self) {}
|
|
|
|
|
|
|
2020-03-30 08:40:23 +02:00
|
|
|
|
|
|
|
|
error: expected one of `:`, `@`, or `|`, found keyword `Self`
|
|
|
|
|
--> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:14:17
|
|
|
|
|
|
|
|
|
|
|
LL | fn baz(&mur Self @ _) {}
|
|
|
|
|
| ^^^^ expected one of `:`, `@`, or `|`
|
2024-09-02 12:43:35 -04:00
|
|
|
|
|
|
|
|
|
help: there is a keyword `mut` with a similar name
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - fn baz(&mur Self @ _) {}
|
|
|
|
|
LL + fn baz(&mut Self @ _) {}
|
|
|
|
|
|
|
2020-03-30 08:40:23 +02:00
|
|
|
|
2024-03-22 16:56:13 -04:00
|
|
|
error[E0533]: expected unit struct, found self constructor `Self`
|
2020-03-30 08:40:23 +02:00
|
|
|
--> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:4:17
|
|
|
|
|
|
|
|
|
|
|
LL | fn foo(&mur Self) {}
|
2024-03-22 16:56:13 -04:00
|
|
|
| ^^^^ not a unit struct
|
2020-03-30 08:40:23 +02:00
|
|
|
|
2024-03-22 16:56:13 -04:00
|
|
|
error[E0533]: expected unit struct, found self constructor `Self`
|
2020-03-30 08:40:23 +02:00
|
|
|
--> $DIR/issue-70549-resolve-after-recovered-self-ctor.rs:8:25
|
|
|
|
|
|
|
|
|
|
|
LL | fn bar(&'static mur Self) {}
|
2024-03-22 16:56:13 -04:00
|
|
|
| ^^^^ not a unit struct
|
2020-03-30 08:40:23 +02:00
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|
|
2024-03-22 16:56:13 -04:00
|
|
|
For more information about this error, try `rustc --explain E0533`.
|