diff options
| author | Michael Goulet <michael@errs.io> | 2023-09-10 03:33:07 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-09-10 21:20:36 +0000 |
| commit | 30e6cea0ae4780bdd99e56fc85719dcb4305c900 (patch) | |
| tree | d9bc44a8a86d3c6dcf9d2df277e6bba6d86cc5da /tests/ui/cross | |
| parent | 26f4b7272428b181e0a88ad075e5c8f09dcb0e5c (diff) | |
| download | rust-30e6cea0ae4780bdd99e56fc85719dcb4305c900.tar.gz rust-30e6cea0ae4780bdd99e56fc85719dcb4305c900.zip | |
Point out if a local trait has no implementations
Diffstat (limited to 'tests/ui/cross')
| -rw-r--r-- | tests/ui/cross/cross-fn-cache-hole.stderr | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/cross/cross-fn-cache-hole.stderr b/tests/ui/cross/cross-fn-cache-hole.stderr index 7e15562b081..79d1713934b 100644 --- a/tests/ui/cross/cross-fn-cache-hole.stderr +++ b/tests/ui/cross/cross-fn-cache-hole.stderr @@ -4,6 +4,11 @@ error[E0277]: the trait bound `i32: Bar<u32>` is not satisfied LL | where i32: Foo<u32, A> | ^^^^^^^^^^^^^^^^ the trait `Bar<u32>` is not implemented for `i32` | +help: this trait has no implementations, consider adding one + --> $DIR/cross-fn-cache-hole.rs:11:1 + | +LL | trait Bar<X> { } + | ^^^^^^^^^^^^ = help: see issue #48214 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable |
