diff options
| author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-10-19 02:33:38 +0900 |
|---|---|---|
| committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-10-19 02:33:38 +0900 |
| commit | e2453dc2ff8ea5984b9eba40af8f8d13ee4e5da5 (patch) | |
| tree | 28bb99c37a42ff1a477db1ee4b26b2ed88a321b1 /src/test/ui/rfc-2632-const-trait-impl | |
| parent | 5dab47dcd8267b8769421b46532414ec36d625e3 (diff) | |
| download | rust-e2453dc2ff8ea5984b9eba40af8f8d13ee4e5da5.tar.gz rust-e2453dc2ff8ea5984b9eba40af8f8d13ee4e5da5.zip | |
Revert "Rollup merge of #86011 - tlyu:correct-sized-bound-spans, r=estebank"
This reverts commit 36a1076d24697621a3bb67ef654b4eb79647aa54, reversing changes made to e1e9319d93aea755c444c8f8ff863b0936d7a4b6.
Diffstat (limited to 'src/test/ui/rfc-2632-const-trait-impl')
| -rw-r--r-- | src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr b/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr index 4a4544c16c9..fffb91f9870 100644 --- a/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr +++ b/src/test/ui/rfc-2632-const-trait-impl/trait-where-clause.stderr @@ -20,11 +20,11 @@ error[E0277]: the trait bound `T: Bar` is not satisfied LL | T::c::<T>(); | ^^^^^^^^^ the trait `Bar` is not implemented for `T` | -note: required by a bound in `Foo::c` - --> $DIR/trait-where-clause.rs:9:10 +note: required by `Foo::c` + --> $DIR/trait-where-clause.rs:9:5 | LL | fn c<T: ~const Bar>(); - | ^ required by this bound in `Foo::c` + | ^^^^^^^^^^^^^^^^^^^^^^ help: consider further restricting this bound | LL | const fn test1<T: ~const Foo + Bar + Bar>() { @@ -52,11 +52,11 @@ error[E0277]: the trait bound `T: Bar` is not satisfied LL | T::c::<T>(); | ^^^^^^^^^ the trait `Bar` is not implemented for `T` | -note: required by a bound in `Foo::c` - --> $DIR/trait-where-clause.rs:9:10 +note: required by `Foo::c` + --> $DIR/trait-where-clause.rs:9:5 | LL | fn c<T: ~const Bar>(); - | ^ required by this bound in `Foo::c` + | ^^^^^^^^^^^^^^^^^^^^^^ help: consider further restricting this bound | LL | fn test3<T: Foo + Bar>() { |
