about summary refs log tree commit diff
path: root/tests/ui/impl-trait
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-02-11 23:17:38 +0000
committerMichael Goulet <michael@errs.io>2023-02-13 18:41:18 +0000
commite20f6ff1dcfaa90aad841f8d36734d1e70d2e065 (patch)
tree5bb97125442adc56e6c847a3dee13983940457b1 /tests/ui/impl-trait
parent0b439b119b8d49450bddbbea317afeb0d4166f70 (diff)
downloadrust-e20f6ff1dcfaa90aad841f8d36734d1e70d2e065.tar.gz
rust-e20f6ff1dcfaa90aad841f8d36734d1e70d2e065.zip
Tighter spans for bad inherent impl types
Diffstat (limited to 'tests/ui/impl-trait')
-rw-r--r--tests/ui/impl-trait/where-allowed.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/impl-trait/where-allowed.stderr b/tests/ui/impl-trait/where-allowed.stderr
index 3ad0a9f9d5c..e3a9caa6460 100644
--- a/tests/ui/impl-trait/where-allowed.stderr
+++ b/tests/ui/impl-trait/where-allowed.stderr
@@ -303,10 +303,10 @@ LL | fn in_method_generic_param_default<T = impl Debug>(_: T) {}
    = note: for more information, see issue #36887 <https://github.com/rust-lang/rust/issues/36887>
 
 error[E0118]: no nominal type found for inherent implementation
-  --> $DIR/where-allowed.rs:233:23
+  --> $DIR/where-allowed.rs:233:1
    |
 LL | impl <T = impl Debug> T {}
-   |                       ^ impl requires a nominal type
+   | ^^^^^^^^^^^^^^^^^^^^^^^ impl requires a nominal type
    |
    = note: either implement a trait on it or create a newtype to wrap it instead