diff --git a/tests/ui/invalid_pyfunctions.stderr b/tests/ui/invalid_pyfunctions.stderr index ab35b086b94..9b35b8dd9fe 100644 --- a/tests/ui/invalid_pyfunctions.stderr +++ b/tests/ui/invalid_pyfunctions.stderr @@ -58,6 +58,6 @@ error[E0277]: the trait bound `&str: From` `String` implements `From<&str>` `String` implements `From>` - `String` implements `From>` + `String` implements `From>` `String` implements `From` = note: required for `BoundRef<'_, '_, pyo3::types::PyModule>` to implement `Into<&str>` diff --git a/tests/ui/static_ref.stderr b/tests/ui/static_ref.stderr index 77c3646745e..9fe37355980 100644 --- a/tests/ui/static_ref.stderr +++ b/tests/ui/static_ref.stderr @@ -5,7 +5,7 @@ error: lifetime may not live long enough | ^^^^^^^^^^^^^ | | | lifetime `'py` defined here - | cast requires that `'py` must outlive `'static` + | coercion requires that `'py` must outlive `'static` | = note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) @@ -42,6 +42,6 @@ error: lifetime may not live long enough | ^^^^^^^^^^^^^ | | | lifetime `'py` defined here - | cast requires that `'py` must outlive `'static` + | coercion requires that `'py` must outlive `'static` | = note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info)