Fixing errors related to the `Buffer` trait. This example demonstrates some error messages that can come from using the `Buffer` trait and how to fix them.
()
| 4 | //! `Buffer` trait and how to fix them. |
| 5 | |
| 6 | fn main() { |
| 7 | error_buffer_wrapper(); |
| 8 | error_retry_closure(); |
| 9 | error_retry_closure_uninit(); |
| 10 | error_retry_indirect_closure(); |
| 11 | error_empty_slice(); |
| 12 | error_array_by_value(); |
| 13 | } |
| 14 | |
| 15 | fn error_buffer_wrapper() { |
| 16 | use rustix::buffer::Buffer; |
nothing calls this directly
no test coverage detected