]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/builtin-superkinds/builtin-superkinds-self-type.stderr
try to avoid `FnCtxt` during wf
[rust.git] / src / test / ui / builtin-superkinds / builtin-superkinds-self-type.stderr
index e2b177b951cc9a2c2bda0f492468fc4e97faa295..1a600affb31450336689d067da75e03f765827a8 100644 (file)
@@ -2,17 +2,15 @@ error[E0310]: the parameter type `T` may not live long enough
   --> $DIR/builtin-superkinds-self-type.rs:10:16
    |
 LL | impl <T: Sync> Foo for T { }
-   |                ^^^ ...so that the type `T` will meet its required lifetime bounds...
+   |                ^^^
    |
+   = help: consider adding an explicit lifetime bound `T: 'static`...
+   = note: ...so that the type `T` will meet its required lifetime bounds...
 note: ...that is required by this bound
   --> $DIR/builtin-superkinds-self-type.rs:6:24
    |
 LL | trait Foo : Sized+Sync+'static {
    |                        ^^^^^^^
-help: consider adding an explicit lifetime bound...
-   |
-LL | impl <T: Sync + 'static> Foo for T { }
-   |               +++++++++
 
 error: aborting due to previous error