error[E0277]: the trait bound `u32: Pointer` is not satisfied
--> tests/compile_fail/display/struct_no_pointer_field.rs:3:10
|
3 | #[derive(Display)]
| ^^^^^^^ the trait `Pointer` is not implemented for `u32`
4 | #[display("{x:p}")]
| ------- required by a bound introduced by this call
|
note: required by a bound in `fmt_pointer`
--> src/helpers.rs
|
| pub fn fmt_pointer<T: ?Sized + fmt::Pointer>(value: &T) -> impl fmt::Pointer + '_ {
| ^^^^^^^^^^^^ required by this bound in `fmt_pointer`
error[E0277]: the trait bound `u32: Pointer` is not satisfied
--> tests/compile_fail/display/struct_no_pointer_field.rs:4:11
|
4 | #[display("{x:p}")]
| ^^^^^^^ the trait `Pointer` is not implemented for `u32`
|
note: required by a bound in `fmt_pointer`
--> src/helpers.rs
|
| pub fn fmt_pointer<T: ?Sized + fmt::Pointer>(value: &T) -> impl fmt::Pointer + '_ {
| ^^^^^^^^^^^^ required by this bound in `fmt_pointer`
error[E0277]: the trait bound `u32: Pointer` is not satisfied
--> tests/compile_fail/display/struct_no_pointer_field.rs:4:11
|
3 | #[derive(Display)]
| ------- in this derive macro expansion
4 | #[display("{x:p}")]
| ^^^^^^^ the trait `Pointer` is not implemented for `u32`
|
= note: this error originates in the macro `$crate::format_args` which comes from the expansion of the derive macro `Display` (in Nightly builds, run with -Z macro-backtrace for more info)