diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-02-10 03:37:08 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-02-22 18:04:55 +0000 |
| commit | e1e4da2b0ad6a052e8ec4460d65db95c81d6314b (patch) | |
| tree | 40ff12147612071bc3a679f1e0f271820e684934 /tests/ui/methods | |
| parent | 385eea1d4610f5bd756dd930f36762a7fc8f75e0 (diff) | |
| download | rust-e1e4da2b0ad6a052e8ec4460d65db95c81d6314b.tar.gz rust-e1e4da2b0ad6a052e8ec4460d65db95c81d6314b.zip | |
Make confusable suggestions `verbose`
Diffstat (limited to 'tests/ui/methods')
| -rw-r--r-- | tests/ui/methods/issues/issue-105732.stderr | 7 | ||||
| -rw-r--r-- | tests/ui/methods/method-not-found-but-doc-alias.stderr | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/tests/ui/methods/issues/issue-105732.stderr b/tests/ui/methods/issues/issue-105732.stderr index 19ccd2de685..906bd6c8636 100644 --- a/tests/ui/methods/issues/issue-105732.stderr +++ b/tests/ui/methods/issues/issue-105732.stderr @@ -10,7 +10,12 @@ error[E0599]: no method named `g` found for reference `&Self` in the current sco --> $DIR/issue-105732.rs:10:14 | LL | self.g(); - | ^ help: there is a method with a similar name: `f` + | ^ + | +help: there is a method with a similar name + | +LL | self.f(); + | ~ error: aborting due to 2 previous errors diff --git a/tests/ui/methods/method-not-found-but-doc-alias.stderr b/tests/ui/methods/method-not-found-but-doc-alias.stderr index 9746c404013..d8c2ea00137 100644 --- a/tests/ui/methods/method-not-found-but-doc-alias.stderr +++ b/tests/ui/methods/method-not-found-but-doc-alias.stderr @@ -5,7 +5,12 @@ LL | struct Foo; | ---------- method `quux` not found for this struct ... LL | Foo.quux(); - | ^^^^ help: there is a method with a similar name: `bar` + | ^^^^ + | +help: there is a method with a similar name + | +LL | Foo.bar(); + | ~~~ error: aborting due to 1 previous error |
