about summary refs log tree commit diff
path: root/src/test/ui/const-generics
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-07-14 15:09:30 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-08-23 00:08:42 +0200
commit613dc2204dc628e6804b9d2be8bdeb6f6f43611e (patch)
tree0f519991909524a2d658f38bb30cc104b51ba9cf /src/test/ui/const-generics
parentd7d701a9dc6c424e01d49d937925dc3bf7718138 (diff)
downloadrust-613dc2204dc628e6804b9d2be8bdeb6f6f43611e.tar.gz
rust-613dc2204dc628e6804b9d2be8bdeb6f6f43611e.zip
Improve local generic parameter suggestions.
Diffstat (limited to 'src/test/ui/const-generics')
-rw-r--r--src/test/ui/const-generics/early/const-param-from-outer-fn.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/const-generics/early/const-param-from-outer-fn.stderr b/src/test/ui/const-generics/early/const-param-from-outer-fn.stderr
index a9f9787d875..e3bf38b702e 100644
--- a/src/test/ui/const-generics/early/const-param-from-outer-fn.stderr
+++ b/src/test/ui/const-generics/early/const-param-from-outer-fn.stderr
@@ -4,7 +4,7 @@ error[E0401]: can't use generic parameters from outer function
 LL | fn foo<const X: u32>() {
    |              - const parameter from outer function
 LL |     fn bar() -> u32 {
-   |        --- try adding a local generic parameter in this method instead
+   |           - help: try using a local generic parameter instead: `<X>`
 LL |         X
    |         ^ use of generic parameter from outer function