Skip to content

Commit

Permalink
Merge pull request #385 from Enet4/fix/update-compile_error-messages
Browse files Browse the repository at this point in the history
Update compile_error test snapshots
  • Loading branch information
shepmaster authored Jul 6, 2023
2 parents 00bba4b + 2bf38fb commit d993c94
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ note: the unit struct `Snafu` is defined here
| ^^^^^
= note: this error originates in the derive macro `Snafu` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0624]: associated function `build` is private
error[E0624]: method `build` is private
--> tests/ui/structs/visibility.rs:11:26
|
6 | #[derive(Debug, Snafu)]
| ----- private associated function defined here
| ----- private method defined here
...
11 | let _ = inner::Snafu.build();
| ^^^^^ private associated function
| ^^^^^ private method
18 changes: 9 additions & 9 deletions compatibility-tests/compile-fail/tests/ui/visibility.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,29 @@ note: the unit struct `PrivateSnafu` is defined here
| ^^^^^
= note: this error originates in the derive macro `Snafu` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0624]: associated function `build` is private
error[E0624]: method `build` is private
--> tests/ui/visibility.rs:19:43
|
7 | #[derive(Debug, Snafu)]
| ----- private associated function defined here
| ----- private method defined here
...
19 | let _ = self::inner::PrivateSnafu.build();
| ^^^^^ private associated function
| ^^^^^ private method

error[E0624]: associated function `build` is private
error[E0624]: method `build` is private
--> tests/ui/visibility.rs:24:48
|
7 | #[derive(Debug, Snafu)]
| ----- private associated function defined here
| ----- private method defined here
...
24 | let _ = self::outer::inner::PubInPathSnafu.build();
| ^^^^^ private associated function
| ^^^^^ private method

error[E0624]: associated function `build` is private
error[E0624]: method `build` is private
--> tests/ui/visibility.rs:28:46
|
7 | #[derive(Debug, Snafu)]
| ----- private associated function defined here
| ----- private method defined here
...
28 | let _ = self::outer::inner::PrivateSnafu.build();
| ^^^^^ private associated function
| ^^^^^ private method

0 comments on commit d993c94

Please sign in to comment.