Skip to content

Commit

Permalink
Add extra errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed May 24, 2024
1 parent b77d097 commit 26b8204
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions compatibility-tests/compile-fail/tests/ui/report.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,23 @@ error[E0277]: the trait bound `ExitCode: __InternalExtractErrorType` is not sati
|
= help: the trait `__InternalExtractErrorType` is implemented for `Result<T, E>`
= note: this error originates in the attribute macro `snafu::report` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `snafu::Report<_>: From<()>` is not satisfied
--> tests/ui/report.rs:6:1
|
6 | #[snafu::report]
| ^^^^^^^^^^^^^^^^ the trait `From<()>` is not implemented for `snafu::Report<_>`
|
= help: the trait `From<Result<(), _>>` is implemented for `snafu::Report<_>`
= help: for that trait implementation, expected `Result<(), _>`, found `()`
= note: this error originates in the attribute macro `snafu::report` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `snafu::Report<_>: From<ExitCode>` is not satisfied
--> tests/ui/report.rs:9:1
|
9 | #[snafu::report]
| ^^^^^^^^^^^^^^^^ the trait `From<ExitCode>` is not implemented for `snafu::Report<_>`
|
= help: the trait `From<Result<(), _>>` is implemented for `snafu::Report<_>`
= help: for that trait implementation, expected `Result<(), _>`, found `ExitCode`
= note: this error originates in the attribute macro `snafu::report` (in Nightly builds, run with -Z macro-backtrace for more info)

0 comments on commit 26b8204

Please sign in to comment.