28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
error[E0277]: the trait bound `NotZerocopy: zerocopy::Immutable` is not satisfied
|
|
--> tests/ui-nightly/diagnostic-not-implemented-immutable.rs:18:23
|
|
|
|
|
18 | takes_immutable::<NotZerocopy>();
|
|
| ^^^^^^^^^^^ unsatisfied trait bound
|
|
|
|
|
help: the trait `zerocopy::Immutable` is not implemented for `NotZerocopy`
|
|
--> tests/ui-nightly/../../zerocopy-derive/tests/include.rs
|
|
|
|
|
| pub struct NotZerocopy<T = ()>(pub T);
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: Consider adding `#[derive(Immutable)]` to `NotZerocopy`
|
|
= help: the following other types implement trait `zerocopy::Immutable`:
|
|
&T
|
|
&mut T
|
|
()
|
|
*const T
|
|
*mut T
|
|
AU16
|
|
Box<T>
|
|
F32<O>
|
|
and $N others
|
|
note: required by a bound in `takes_immutable`
|
|
--> tests/ui-nightly/diagnostic-not-implemented-immutable.rs:21:23
|
|
|
|
|
21 | fn takes_immutable<T: Immutable>() {}
|
|
| ^^^^^^^^^ required by this bound in `takes_immutable`
|