diff --git a/compatibility-tests/compile-fail/tests/ui/structs/visibility.stderr b/compatibility-tests/compile-fail/tests/ui/structs/visibility.stderr index 32a450a0..9b0bc8ec 100644 --- a/compatibility-tests/compile-fail/tests/ui/structs/visibility.stderr +++ b/compatibility-tests/compile-fail/tests/ui/structs/visibility.stderr @@ -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 diff --git a/compatibility-tests/compile-fail/tests/ui/visibility.stderr b/compatibility-tests/compile-fail/tests/ui/visibility.stderr index cdd2cef7..664dd647 100644 --- a/compatibility-tests/compile-fail/tests/ui/visibility.stderr +++ b/compatibility-tests/compile-fail/tests/ui/visibility.stderr @@ -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