diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-13 11:10:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-13 11:10:44 +0200 |
| commit | 91c08288c4369fd746bfb334d4eecb403c61203e (patch) | |
| tree | c0efb20ea73912dceab73fe0dfabbf5712c0e24b /src | |
| parent | e40d7e6d8453013b25f079c577e4a3a5c7c3ab1b (diff) | |
| parent | 1e2635815f851cc3322af84ca1e521afc3763ca9 (diff) | |
| download | rust-91c08288c4369fd746bfb334d4eecb403c61203e.tar.gz rust-91c08288c4369fd746bfb334d4eecb403c61203e.zip | |
Rollup merge of #84141 - camelid:fix-typo, r=Dylan-DPC
Fix typo in error message Also tweaked the message a bit by - removing the hyphen, because in my opinion the hyphen makes the message a bit harder to read, especially combined with the backticks; - adding the word "be", because I think it's a bit clearer that way.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/const-generics/diagnostics.stderr | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/test/ui/const-generics/diagnostics.stderr b/src/test/ui/const-generics/diagnostics.stderr index 7d038ff955d..c8ee6ad61ec 100644 --- a/src/test/ui/const-generics/diagnostics.stderr +++ b/src/test/ui/const-generics/diagnostics.stderr @@ -31,9 +31,12 @@ error[E0747]: type provided when a constant was expected --> $DIR/diagnostics.rs:12:19 | LL | impl<N> Foo for B<N> {} - | - ^ - | | - | help: consider changing this type paramater to a `const`-generic: `const N: u8` + | ^ + | +help: consider changing this type parameter to be a `const` generic + | +LL | impl<const N: u8> Foo for B<N> {} + | ^^^^^^^^^^^ error[E0747]: unresolved item provided when a constant was expected --> $DIR/diagnostics.rs:16:32 |
