error[E0277]: the trait bound `NotZerocopy: Immutable` is not satisfied --> tests/ui-stable/diagnostic-not-implemented-issue-1296.rs:50:19 | 50 | Foo.write_obj(NotZerocopy(())); | --------- ^^^^^^^^^^^^^^^ the trait `Immutable` is not implemented for `NotZerocopy` | | | required by a bound introduced by this call | note: required by a bound in `Foo::write_obj` --> tests/ui-stable/diagnostic-not-implemented-issue-1296.rs:56:21 | 56 | fn write_obj(&mut self, _val: T) {} | ^^^^^^^^^ required by this bound in `Foo::write_obj` help: consider borrowing here | 50 | Foo.write_obj(&NotZerocopy(())); | + 50 | Foo.write_obj(&mut NotZerocopy(())); | ++++ error[E0277]: the trait bound `NotZerocopy: IntoBytes` is not satisfied --> tests/ui-stable/diagnostic-not-implemented-issue-1296.rs:50:19 | 50 | Foo.write_obj(NotZerocopy(())); | --------- ^^^^^^^^^^^^^^^ unsatisfied trait bound | | | required by a bound introduced by this call | help: the trait `IntoBytes` is not implemented for `NotZerocopy` --> tests/ui-stable/../include.rs | | pub struct NotZerocopy(pub T); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: Consider adding `#[derive(IntoBytes)]` to `NotZerocopy` = help: the following other types implement trait `IntoBytes`: () AU16 AtomicBool AtomicI16 AtomicI32 AtomicI64 AtomicI8 AtomicIsize and $N others note: required by a bound in `Foo::write_obj` --> tests/ui-stable/diagnostic-not-implemented-issue-1296.rs:56:33 | 56 | fn write_obj(&mut self, _val: T) {} | ^^^^^^^^^ required by this bound in `Foo::write_obj`