Skip to content

Commit

Permalink
Update compile_error test snapshots
Browse files Browse the repository at this point in the history
- caused by specialized referencing of methods
- compatibility-tests/compile-fail/tests/ui
- compatibility-tests/compile-fail/tests/structs
  • Loading branch information
Enet4 committed Jul 6, 2023
1 parent 00bba4b commit 2bf38fb
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 2bf38fb

Please # to comment.