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 Mar 27, 2024
1 parent 5186720 commit 14be0ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions tests/compile_fail/as_mut/renamed_generic.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ error[E0599]: the method `as_mut` exists for struct `Baz<i32>`, but its trait bo
| ------------- doesn't satisfy `Foo<i32>: AsMut<Foo<i32>>`
...
7 | struct Baz<T>(Foo<T>);
| -------------
| |
| method `as_mut` not found for this struct
| doesn't satisfy `Baz<i32>: AsMut<Foo<i32>>`
| ------------- method `as_mut` not found for this struct because it doesn't satisfy `Baz<i32>: AsMut<Foo<i32>>`
...
11 | let _: &mut Bar<i32> = item.as_mut();
| ^^^^^^ method cannot be called on `Baz<i32>` due to unsatisfied trait bounds
Expand Down
5 changes: 1 addition & 4 deletions tests/compile_fail/as_ref/renamed_generic.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ error[E0599]: the method `as_ref` exists for struct `Baz<i32>`, but its trait bo
| ------------- doesn't satisfy `Foo<i32>: AsRef<Foo<i32>>`
...
7 | struct Baz<T>(Foo<T>);
| -------------
| |
| method `as_ref` not found for this struct
| doesn't satisfy `Baz<i32>: AsRef<Foo<i32>>`
| ------------- method `as_ref` not found for this struct because it doesn't satisfy `Baz<i32>: AsRef<Foo<i32>>`
...
11 | let _: &Bar<i32> = item.as_ref();
| ^^^^^^ method cannot be called on `Baz<i32>` due to unsatisfied trait bounds
Expand Down

0 comments on commit 14be0ca

Please sign in to comment.