File: struct-with-fmt.stderr

package info (click to toggle)
rust-thiserror 2.0.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 532 kB
  • sloc: makefile: 2
file content (5 lines) | stat: -rw-r--r-- 226 bytes parent folder | download | duplicates (22)
1
2
3
4
5
error: #[error(fmt = ...)] is only supported in enums; for a struct, handwrite your own Display impl
 --> tests/ui/struct-with-fmt.rs:4:1
  |
4 | #[error(fmt = core::fmt::Octal::fmt)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^