From 30e6cea0ae4780bdd99e56fc85719dcb4305c900 Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Sun, 10 Sep 2023 03:33:07 +0000 Subject: Point out if a local trait has no implementations --- tests/ui/error-codes/E0277.stderr | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/ui/error-codes') 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 | -- cgit 1.4.1-3-g733a5