]> git.lizzy.rs Git - rust.git/blob - src/test/ui/builtin-superkinds/builtin-superkinds-self-type.stderr
Rollup merge of #97613 - jsha:implementation-is-on-local-type, r=GuillaumeGomez
[rust.git] / src / test / ui / builtin-superkinds / builtin-superkinds-self-type.stderr
1 error[E0310]: the parameter type `T` may not live long enough
2   --> $DIR/builtin-superkinds-self-type.rs:10:16
3    |
4 LL | impl <T: Sync> Foo for T { }
5    |                ^^^ ...so that the type `T` will meet its required lifetime bounds...
6    |
7 note: ...that is required by this bound
8   --> $DIR/builtin-superkinds-self-type.rs:6:24
9    |
10 LL | trait Foo : Sized+Sync+'static {
11    |                        ^^^^^^^
12 help: consider adding an explicit lifetime bound...
13    |
14 LL | impl <T: Sync + 'static> Foo for T { }
15    |               +++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0310`.