diff options
| author | varkor <github@varkor.com> | 2019-09-10 22:35:10 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-09-11 00:29:35 +0100 |
| commit | ef62e050624fabc57f17dd6744ff29f79b39e8cd (patch) | |
| tree | 7c4efc6426d29462432be5512aed6d250997e7e2 /src/test/ui/const-generics | |
| parent | 14e6947fa4b9a144802869286a937c987d6a3c54 (diff) | |
| download | rust-ef62e050624fabc57f17dd6744ff29f79b39e8cd.tar.gz rust-ef62e050624fabc57f17dd6744ff29f79b39e8cd.zip | |
Make wording less confusing
Diffstat (limited to 'src/test/ui/const-generics')
| -rw-r--r-- | src/test/ui/const-generics/foreign-item-const-parameter.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/const-generics/foreign-item-const-parameter.stderr b/src/test/ui/const-generics/foreign-item-const-parameter.stderr index 0a74537dfef..999feed2d3b 100644 --- a/src/test/ui/const-generics/foreign-item-const-parameter.stderr +++ b/src/test/ui/const-generics/foreign-item-const-parameter.stderr @@ -12,7 +12,7 @@ error[E0044]: foreign items may not have const parameters LL | fn foo<const X: usize>(); | ^^^^^^^^^^^^^^^^^^^^^^^^^ can't have const parameters | - = help: use specialization instead of const parameters by replacing them with concrete consts + = help: replace the const parameters with concrete consts error[E0044]: foreign items may not have type or const parameters --> $DIR/foreign-item-const-parameter.rs:7:5 @@ -20,7 +20,7 @@ error[E0044]: foreign items may not have type or const parameters LL | fn bar<T, const X: usize>(_: T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't have type or const parameters | - = help: use specialization instead of type or const parameters by replacing them with concrete types or consts + = help: replace the type or const parameters with concrete types or consts error: aborting due to 2 previous errors |
