2024-01-09 14:12:59 +00:00
|
|
|
error: concrete type differs from previous defining opaque type use
|
2025-04-01 23:48:41 +02:00
|
|
|
--> $DIR/early_bound.rs:6:36
|
2024-01-09 14:12:59 +00:00
|
|
|
|
|
2025-04-01 23:48:41 +02:00
|
|
|
LL | let _ = identity::<&'a ()>(test(false));
|
|
|
|
|
| ^^^^^^^^^^^ expected `()`, got `&()`
|
2024-01-09 14:12:59 +00:00
|
|
|
|
|
|
|
|
|
note: previous use here
|
2025-04-01 23:48:41 +02:00
|
|
|
--> $DIR/early_bound.rs:3:29
|
2025-01-11 19:22:02 +00:00
|
|
|
|
|
|
|
|
|
LL | fn test<'a: 'a>(n: bool) -> impl Sized + 'a {
|
2025-04-01 23:48:41 +02:00
|
|
|
| ^^^^^^^^^^^^^^^
|
2025-01-11 19:22:02 +00:00
|
|
|
|
2025-04-01 23:48:41 +02:00
|
|
|
error: aborting due to 1 previous error
|
2024-01-09 14:12:59 +00:00
|
|
|
|