diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-09-06 12:00:07 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-09-08 18:27:02 -0700 |
| commit | 5799fb419c96a9e6a170f7980f67fd9047fd6f96 (patch) | |
| tree | 695bdcefae83e4021dc91add00f255893410cbe6 /src/test/ui/hygiene | |
| parent | 2c0931e168671d7536b58563dc3664c948a8dcd3 (diff) | |
| download | rust-5799fb419c96a9e6a170f7980f67fd9047fd6f96.tar.gz rust-5799fb419c96a9e6a170f7980f67fd9047fd6f96.zip | |
Give method not found a primary span label
Diffstat (limited to 'src/test/ui/hygiene')
| -rw-r--r-- | src/test/ui/hygiene/no_implicit_prelude.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/hygiene/trait_items.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/hygiene/no_implicit_prelude.stderr b/src/test/ui/hygiene/no_implicit_prelude.stderr index 643f803f620..8fa55d05bdd 100644 --- a/src/test/ui/hygiene/no_implicit_prelude.stderr +++ b/src/test/ui/hygiene/no_implicit_prelude.stderr @@ -22,7 +22,7 @@ LL | fn f() { ::bar::m!(); } | ------------ in this macro invocation ... LL | ().clone() - | ^^^^^ + | ^^^^^ method not found in `()` | = help: items from traits can only be used if the trait is in scope = note: the following trait is implemented but not in scope, perhaps add a `use` for it: diff --git a/src/test/ui/hygiene/trait_items.stderr b/src/test/ui/hygiene/trait_items.stderr index 4192b97e750..39e32522c7a 100644 --- a/src/test/ui/hygiene/trait_items.stderr +++ b/src/test/ui/hygiene/trait_items.stderr @@ -5,7 +5,7 @@ LL | fn f() { ::baz::m!(); } | ------------ in this macro invocation ... LL | pub macro m() { ().f() } - | ^ + | ^ method not found in `()` | = help: items from traits can only be used if the trait is in scope = note: the following trait is implemented but not in scope, perhaps add a `use` for it: |
