error: #[retention(...)] is a struct-level attribute; found on field `body` where it is silently ignored — move it above the struct
 --> tests/ui/retention_on_field.rs:9:5
  |
9 |     #[retention(memory = 100)]
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
