Skip to content

Commit 713cfad

Browse files
committed
Update UI tests
1 parent 8226514 commit 713cfad

File tree

4 files changed

+38
-6
lines changed

4 files changed

+38
-6
lines changed

tests/ui/global_block_not_encode.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ error[E0277]: the trait bound `Box<i32>: objc2_encode::encode::Encode` is not sa
66
5 | | }
77
| |_^ the trait `objc2_encode::encode::Encode` is not implemented for `Box<i32>`
88
|
9+
= help: the following other types implement trait `objc2_encode::encode::Encode`:
10+
&'a T
11+
&'a mut T
12+
()
13+
*const T
14+
*const c_void
15+
*mut T
16+
*mut c_void
17+
ManuallyDrop<T>
18+
and 140 others
919
= note: required because of the requirements on the impl of `objc2_encode::encode::EncodeArguments` for `(Box<i32>,)`
1020
= note: required because of the requirements on the impl of `Sync` for `GlobalBlock<(Box<i32>,)>`
1121
= note: shared static variables must have a type that implements `Sync`

tests/ui/msg_send_not_encode.stderr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ error[E0277]: the trait bound `Vec<u8>: Encode` is not satisfied
44
7 | let _: Vec<u8> = msg_send![cls, new];
55
| ^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `Vec<u8>`
66
|
7+
= help: the following other types implement trait `Encode`:
8+
&'a T
9+
&'a mut T
10+
()
11+
*const T
12+
*const c_void
13+
*mut T
14+
*mut c_void
15+
ManuallyDrop<T>
16+
and 142 others
717
note: required by a bound in `send_message`
818
--> $WORKSPACE/objc2/src/message/mod.rs
919
|

tests/ui/msg_send_only_message.stderr

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,12 @@ error[E0277]: the trait bound `{integer}: MessageReceiver` is not satisfied
44
5 | unsafe { msg_send![1, new] };
55
| ^^^^^^^^^^^^^^^^^ the trait `MessageReceiver` is not implemented for `{integer}`
66
|
7+
= help: the following other types implement trait `MessageReceiver`:
8+
&'a T
9+
&'a mut T
10+
*const T
11+
*mut T
12+
Id<T, O>
13+
ManuallyDrop<T>
14+
NonNull<T>
715
= note: this error originates in the macro `msg_send` (in Nightly builds, run with -Z macro-backtrace for more info)

tests/ui/nsvalue_f32_not_eq.stderr

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ error[E0277]: the trait bound `f32: Eq` is not satisfied
44
11 | needs_eq::<NSValue<f32>>();
55
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Eq` is not implemented for `f32`
66
|
7-
= help: the following implementations were found:
8-
<i128 as Eq>
9-
<i16 as Eq>
10-
<i32 as Eq>
11-
<i64 as Eq>
12-
and 8 others
7+
= help: the following other types implement trait `Eq`:
8+
i128
9+
i16
10+
i32
11+
i64
12+
i8
13+
isize
14+
u128
15+
u16
16+
and 4 others
1317
= note: required because of the requirements on the impl of `Eq` for `NSValue<f32>`
1418
note: required by a bound in `needs_eq`
1519
--> ui/nsvalue_f32_not_eq.rs:5:16

0 commit comments

Comments
 (0)