Skip to content

Commit

Permalink
Fix compile_fail tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Nov 29, 2024
1 parent 6844e63 commit d812965
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/compile_fail/as_mut/renamed_generic.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ error[E0599]: the method `as_mut` exists for struct `Baz<i32>`, but its trait bo
= note: trait bound `Foo<i32>: AsMut<Foo<i32>>` was not satisfied
note: the trait `AsMut` must be implemented
--> $RUST/core/src/convert/mod.rs
|
| pub trait AsMut<T: ?Sized> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `as_mut`, perhaps you need to implement it:
candidate #1: `AsMut`
3 changes: 3 additions & 0 deletions tests/compile_fail/as_ref/renamed_generic.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ error[E0599]: the method `as_ref` exists for struct `Baz<i32>`, but its trait bo
= note: trait bound `Foo<i32>: AsRef<Foo<i32>>` was not satisfied
note: the trait `AsRef` must be implemented
--> $RUST/core/src/convert/mod.rs
|
| pub trait AsRef<T: ?Sized> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `as_ref`, perhaps you need to implement it:
candidate #1: `AsRef`

0 comments on commit d812965

Please sign in to comment.