blob: 0316832a1af902aaf8eebb22c46bc24f4a6e3949 [file] [log] [blame]
error: non-defining existential type use in defining scope
--> $DIR/generic_duplicate_lifetime_param.rs:18:1
|
LL | / fn one<'a>(t: &'a ()) -> Two<'a, 'a> { //~ ERROR non-defining existential type use
LL | | t
LL | | }
| |_^
|
note: lifetime used multiple times
--> $DIR/generic_duplicate_lifetime_param.rs:16:22
|
LL | existential type Two<'a, 'b>: std::fmt::Debug;
| ^^ ^^
error: aborting due to previous error