diff options
| author | yukang <moorekang@gmail.com> | 2024-07-17 14:18:41 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2024-07-17 19:08:37 +0800 |
| commit | 40e07a3ab13913eaed0e9fa336669f590d07d89a (patch) | |
| tree | 130c4ecc965cb6c8188281eb0aaf08201b68e225 /tests/ui/impl-trait | |
| parent | 1a6e777c3c9e5dd57e1e62d95e13eeebaaebac04 (diff) | |
| download | rust-40e07a3ab13913eaed0e9fa336669f590d07d89a.tar.gz rust-40e07a3ab13913eaed0e9fa336669f590d07d89a.zip | |
Remove invalid further restricting for type bound
Diffstat (limited to 'tests/ui/impl-trait')
| -rw-r--r-- | tests/ui/impl-trait/in-trait/return-dont-satisfy-bounds.stderr | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/ui/impl-trait/in-trait/return-dont-satisfy-bounds.stderr b/tests/ui/impl-trait/in-trait/return-dont-satisfy-bounds.stderr index fbf82a24b50..ae449099987 100644 --- a/tests/ui/impl-trait/in-trait/return-dont-satisfy-bounds.stderr +++ b/tests/ui/impl-trait/in-trait/return-dont-satisfy-bounds.stderr @@ -22,10 +22,6 @@ note: required by a bound in `<Bar as Foo<char>>::foo` | LL | fn foo<F2: Foo<u8>>(self) -> impl Foo<u8> { | ^^^^^^^ required by this bound in `<Bar as Foo<char>>::foo` -help: consider further restricting this bound - | -LL | fn foo<F2: Foo<u8> + Foo<u8>>(self) -> impl Foo<u8> { - | +++++++++ error[E0276]: impl has stricter requirements than trait --> $DIR/return-dont-satisfy-bounds.rs:8:16 |
