]> git.lizzy.rs Git - rust.git/blob - src/test/ui/existential_types/generic_duplicate_lifetime_param.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / existential_types / generic_duplicate_lifetime_param.stderr
1 error: non-defining existential type use in defining scope
2   --> $DIR/generic_duplicate_lifetime_param.rs:7:1
3    |
4 LL | / fn one<'a>(t: &'a ()) -> Two<'a, 'a> { //~ ERROR non-defining existential type use
5 LL | |     t
6 LL | | }
7    | |_^
8    |
9 note: lifetime used multiple times
10   --> $DIR/generic_duplicate_lifetime_param.rs:5:22
11    |
12 LL | existential type Two<'a, 'b>: std::fmt::Debug;
13    |                      ^^  ^^
14
15 error: aborting due to previous error
16