]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/type_parameters_captured.nll.stderr
Rollup merge of #95504 - jyn514:library-alias, r=Mark-Simulacrum
[rust.git] / src / test / ui / impl-trait / type_parameters_captured.nll.stderr
index 039cb62f86656a69f511b6364d7935181de85bde..b1175a5952e592a7a575da8413050c2e18f3d29f 100644 (file)
@@ -1,8 +1,8 @@
 error[E0310]: the parameter type `T` may not live long enough
-  --> $DIR/type_parameters_captured.rs:7:20
+  --> $DIR/type_parameters_captured.rs:10:5
    |
-LL | fn foo<T>(x: T) -> impl Any + 'static {
-   |                    ^^^^^^^^^^^^^^^^^^
+LL |     x
+   |     ^
    |
    = help: consider adding an explicit lifetime bound `T: 'static`...