diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-09-23 04:45:17 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-09-25 15:56:36 +0000 |
| commit | 81bca5f5cf2741c6f23c4e116ad3d38088701681 (patch) | |
| tree | 97e00b0319106d55dda8fed86aba57862da68191 /tests/ui/self | |
| parent | af685931799459879b2a8995524755a06ffb5eec (diff) | |
| download | rust-81bca5f5cf2741c6f23c4e116ad3d38088701681.tar.gz rust-81bca5f5cf2741c6f23c4e116ad3d38088701681.zip | |
When suggesting `self.x` for `S { x }`, use `S { x: self.x }`
Tweak output. Fix #115992.
Diffstat (limited to 'tests/ui/self')
| -rw-r--r-- | tests/ui/self/class-missing-self.stderr | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/ui/self/class-missing-self.stderr b/tests/ui/self/class-missing-self.stderr index 08493b4f9a2..ca7a896200f 100644 --- a/tests/ui/self/class-missing-self.stderr +++ b/tests/ui/self/class-missing-self.stderr @@ -2,7 +2,12 @@ error[E0425]: cannot find value `meows` in this scope --> $DIR/class-missing-self.rs:9:7 | LL | meows += 1; - | ^^^^^ help: you might have meant to use the available field: `self.meows` + | ^^^^^ + | +help: you might have meant to use the available field + | +LL | self.meows += 1; + | +++++ error[E0425]: cannot find function `sleep` in this scope --> $DIR/class-missing-self.rs:10:7 |
