Update trybuild tests for Rust 1.68 (#8002)

This commit is contained in:
Rob Parrett 2023-03-09 08:46:06 -07:00 committed by GitHub
parent f554700108
commit b7ac5d5121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ note: required by a bound in `_::assert_readonly`
--> tests/ui/world_query_derive.rs:7:10 --> tests/ui/world_query_derive.rs:7:10
| |
7 | #[derive(WorldQuery)] 7 | #[derive(WorldQuery)]
| ^^^^^^^^^^ required by this bound in `_::assert_readonly` | ^^^^^^^^^^ required by this bound in `assert_readonly`
= note: this error originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `MutableMarked: ReadOnlyWorldQuery` is not satisfied error[E0277]: the trait bound `MutableMarked: ReadOnlyWorldQuery` is not satisfied
@ -41,5 +41,5 @@ note: required by a bound in `_::assert_readonly`
--> tests/ui/world_query_derive.rs:18:10 --> tests/ui/world_query_derive.rs:18:10
| |
18 | #[derive(WorldQuery)] 18 | #[derive(WorldQuery)]
| ^^^^^^^^^^ required by this bound in `_::assert_readonly` | ^^^^^^^^^^ required by this bound in `assert_readonly`
= note: this error originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info) = note: this error originates in the derive macro `WorldQuery` (in Nightly builds, run with -Z macro-backtrace for more info)

View File

@ -24,7 +24,7 @@ note: required for `Foo<NoReflect>` to implement `Reflect`
--> tests/reflect_derive/generics.fail.rs:3:10 --> tests/reflect_derive/generics.fail.rs:3:10
| |
3 | #[derive(Reflect)] 3 | #[derive(Reflect)]
| ^^^^^^^ | ^^^^^^^ unsatisfied trait bound introduced in this `derive` macro
4 | struct Foo<T> { 4 | struct Foo<T> {
| ^^^^^^ | ^^^^^^
= note: required for the cast from `Foo<NoReflect>` to the object type `dyn Reflect` = note: required for the cast from `Foo<NoReflect>` to the object type `dyn Reflect`