]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/where-allowed.stderr
Rollup merge of #95194 - kckeiks:update-algo-in-find-use-placement, r=pnkfelix
[rust.git] / src / test / ui / impl-trait / where-allowed.stderr
index eef20c2de94bc7b0b4f5b83ba9cea83b68e8be46..58a2f79efb4c643e5f0cecdfbbb25faf395064b1 100644 (file)
@@ -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>