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/impl-trait | |
| 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/impl-trait')
| -rw-r--r-- | src/test/ui/impl-trait/where-allowed.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/impl-trait/where-allowed.stderr b/src/test/ui/impl-trait/where-allowed.stderr index eef20c2de94..58a2f79efb4 100644 --- a/src/test/ui/impl-trait/where-allowed.stderr +++ b/src/test/ui/impl-trait/where-allowed.stderr @@ -293,7 +293,7 @@ error: defaults for type parameters are only allowed in `struct`, `enum`, `type` --> $DIR/where-allowed.rs:234:7 | LL | impl <T = impl Debug> T {} - | ^ + | ^^^^^^^^^^^^^^ | = note: `#[deny(invalid_type_param_default)]` on by default = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! @@ -303,7 +303,7 @@ error: defaults for type parameters are only allowed in `struct`, `enum`, `type` --> $DIR/where-allowed.rs:241:36 | LL | fn in_method_generic_param_default<T = impl Debug>(_: T) {} - | ^ + | ^^^^^^^^^^^^^^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #36887 <https://github.com/rust-lang/rust/issues/36887> |
