diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-06 16:54:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-06 16:54:56 +0100 |
| commit | 4f919e4628e8b350774fb426c47dba3a8c09d65f (patch) | |
| tree | a72a60a932f3594c502aca3a7ecfe96bddbea50d /src | |
| parent | dc07e1bbddaa9e52b1bf18f3da4bdeb7855390cd (diff) | |
| parent | 9c9c47677487af4f9a9810a0171b077789ddd63b (diff) | |
| download | rust-4f919e4628e8b350774fb426c47dba3a8c09d65f.tar.gz rust-4f919e4628e8b350774fb426c47dba3a8c09d65f.zip | |
Rollup merge of #105349 - compiler-errors:point-at-assoc-ct-fn-ptr-arg, r=cjgillot
Point at args in associated const fn pointers Tiny follow-up to #105201, not so sure it's worth it but :shrug: The UI test example is a bit more compelling when it's `GlUniformScalar::FACTORY` r? `@cjgillot`
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/suggestions/assoc-const-as-fn.stderr | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/ui/suggestions/assoc-const-as-fn.stderr b/src/test/ui/suggestions/assoc-const-as-fn.stderr index fa740687858..3b6e947c59f 100644 --- a/src/test/ui/suggestions/assoc-const-as-fn.stderr +++ b/src/test/ui/suggestions/assoc-const-as-fn.stderr @@ -1,8 +1,10 @@ error[E0277]: the trait bound `T: GlUniformScalar` is not satisfied - --> $DIR/assoc-const-as-fn.rs:14:5 + --> $DIR/assoc-const-as-fn.rs:14:40 | LL | <T as GlUniformScalar>::FACTORY(1, value); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `GlUniformScalar` is not implemented for `T` + | ------------------------------- ^^^^^ the trait `GlUniformScalar` is not implemented for `T` + | | + | required by a bound introduced by this call | help: consider further restricting this bound | |
