diff options
| author | Esteban Kรผber <esteban@kuber.com.ar> | 2023-10-21 01:18:41 +0000 |
|---|---|---|
| committer | Esteban Kรผber <esteban@kuber.com.ar> | 2023-11-07 00:54:10 +0000 |
| commit | f926031ea50ef58c1c8bfccd98da73d86d5fc937 (patch) | |
| tree | ecd76d25ae1eaa3df2418337f7d42f19a77cfe35 /tests/ui/parser | |
| parent | b049093560aa1c69face8c1893bd8acd99fff275 (diff) | |
| download | rust-f926031ea50ef58c1c8bfccd98da73d86d5fc937.tar.gz rust-f926031ea50ef58c1c8bfccd98da73d86d5fc937.zip | |
When not finding assoc fn on type, look for builder fn
When we have a resolution error when looking at a fully qualified path on a type, look for all associated functions on inherent impls that return `Self` and mention them to the user. Fix #69512.
Diffstat (limited to 'tests/ui/parser')
| -rw-r--r-- | tests/ui/parser/emoji-identifiers.stderr | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/parser/emoji-identifiers.stderr b/tests/ui/parser/emoji-identifiers.stderr index e645b68ba87..8250dd1ea2e 100644 --- a/tests/ui/parser/emoji-identifiers.stderr +++ b/tests/ui/parser/emoji-identifiers.stderr @@ -75,6 +75,12 @@ LL | ๐::full_ofโจ() | | | function or associated item not found in `๐` | help: there is an associated function with a similar name: `full_of_โจ` + | +note: if you're trying to build a new `๐`, consider using `๐::full_of_โจ` which returns `๐` + --> $DIR/emoji-identifiers.rs:4:5 + | +LL | fn full_of_โจ() -> ๐ { + | ^^^^^^^^^^^^^^^^^^^^^ error[E0425]: cannot find function `i_like_to_๐_a_lot` in this scope --> $DIR/emoji-identifiers.rs:13:13 |
