]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.min_tait.stderr
Rollup merge of #87354 - Wind-River:2021_master, r=kennytm
[rust.git] / src / test / ui / type-alias-impl-trait / generic_type_does_not_live_long_enough.min_tait.stderr
index 49ead8b094c1977f95bcef33e12889ee18c5b28d..e50282201074ecb98c291816f2adac9d038e3d40 100644 (file)
@@ -27,16 +27,7 @@ LL | type WrongGeneric<T> = impl 'static;
 LL | fn wrong_generic<T>(t: T) -> WrongGeneric<T> {
    |                  - help: consider adding an explicit lifetime bound...: `T: 'static`
 
-error[E0310]: the parameter type `T` may not live long enough
-  --> $DIR/generic_type_does_not_live_long_enough.rs:12:24
-   |
-LL | type WrongGeneric<T> = impl 'static;
-   |                        ^^^^^^^^^^^^
-   |
-   = help: consider adding an explicit lifetime bound `T: 'static`...
-   = note: ...so that the type `T` will meet its required lifetime bounds
-
-error: aborting due to 4 previous errors
+error: aborting due to 3 previous errors
 
 Some errors have detailed explanations: E0308, E0310.
 For more information about an error, try `rustc --explain E0308`.