diff options
| author | Michael Howell <michael@notriddle.com> | 2022-04-04 12:16:20 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-04-04 12:16:20 -0700 |
| commit | 6ece80fcb672ee3053ccf4fafed62e7307b56a66 (patch) | |
| tree | cb55d0dfa0eb9e464e1bdd17d1fe0662ca48550f /src/test/ui/missing | |
| parent | d5139f44690e7765df801ca33a7f627d128ac9e2 (diff) | |
| download | rust-6ece80fcb672ee3053ccf4fafed62e7307b56a66.tar.gz rust-6ece80fcb672ee3053ccf4fafed62e7307b56a66.zip | |
diagnostics: use correct span for const generics
Fixes #95616
Diffstat (limited to 'src/test/ui/missing')
| -rw-r--r-- | src/test/ui/missing/missing-items/missing-type-parameter2.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/missing/missing-items/missing-type-parameter2.stderr b/src/test/ui/missing/missing-items/missing-type-parameter2.stderr index 3b930d7e4ec..cbceec58eb1 100644 --- a/src/test/ui/missing/missing-items/missing-type-parameter2.stderr +++ b/src/test/ui/missing/missing-items/missing-type-parameter2.stderr @@ -99,10 +99,10 @@ LL | impl X<{ N }> {} | + + error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions - --> $DIR/missing-type-parameter2.rs:6:15 + --> $DIR/missing-type-parameter2.rs:6:9 | LL | impl<T, const A: u8 = 2> X<N> {} - | ^ + | ^^^^^^^^^^^^^^^ error[E0747]: unresolved item provided when a constant was expected --> $DIR/missing-type-parameter2.rs:6:28 |
