about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-09-11 17:03:32 +0200
committerGitHub <noreply@github.com>2023-09-11 17:03:32 +0200
commitf279afb455bac1dfd362846eb5ce45d7f8d6f6ee (patch)
tree8ed990d88c6d5749c1b5c68c6a84fd0c9dc7f2c6 /tests/ui/error-codes
parentd24f57572237d5bbb16e737745457f030da80219 (diff)
parent30e6cea0ae4780bdd99e56fc85719dcb4305c900 (diff)
downloadrust-f279afb455bac1dfd362846eb5ce45d7f8d6f6ee.tar.gz
rust-f279afb455bac1dfd362846eb5ce45d7f8d6f6ee.zip
Rollup merge of #115743 - compiler-errors:no-impls, r=davidtwco
Point out if a local trait has no implementations

Slightly helps with #115741
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0277.stderr5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0277.stderr b/tests/ui/error-codes/E0277.stderr
index 440e43dff81..0b0d2b09720 100644
--- a/tests/ui/error-codes/E0277.stderr
+++ b/tests/ui/error-codes/E0277.stderr
@@ -21,6 +21,11 @@ LL |     some_func(5i32);
    |     |
    |     required by a bound introduced by this call
    |
+help: this trait has no implementations, consider adding one
+  --> $DIR/E0277.rs:3:1
+   |
+LL | trait Foo {
+   | ^^^^^^^^^
 note: required by a bound in `some_func`
   --> $DIR/E0277.rs:7:17
    |