File: fallback-impl-with-display.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 (16 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (48)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: expected attribute arguments in parentheses: #[error(...)]
 --> tests/ui/fallback-impl-with-display.rs:5:3
  |
5 | #[error]
  |   ^^^^^

error[E0119]: conflicting implementations of trait `std::fmt::Display` for type `MyError`
 --> tests/ui/fallback-impl-with-display.rs:4:10
  |
4 | #[derive(Error, Debug)]
  |          ^^^^^ conflicting implementation for `MyError`
...
8 | impl Display for MyError {
  | ------------------------ first implementation here
  |
  = note: this error originates in the derive macro `Error` (in Nightly builds, run with -Z macro-backtrace for more info)