|
| 1 | +error[E0277]: the trait bound `objc2::runtime::Sel: RefEncode` is not satisfied |
| 2 | + --> ui/not_encode.rs |
| 3 | + | |
| 4 | + | is_encode::<&Sel>(); |
| 5 | + | ^^^^ the trait `RefEncode` is not implemented for `objc2::runtime::Sel` |
| 6 | + | |
| 7 | + = note: required for `&objc2::runtime::Sel` to implement `Encode` |
| 8 | +note: required by a bound in `is_encode` |
| 9 | + --> ui/not_encode.rs |
| 10 | + | |
| 11 | + | fn is_encode<T: Encode>() {} |
| 12 | + | ^^^^^^ required by this bound in `is_encode` |
| 13 | +help: consider removing the leading `&`-reference |
| 14 | + | |
| 15 | +11 - is_encode::<&Sel>(); |
| 16 | +11 + is_encode::<Sel>(); |
| 17 | + | |
| 18 | + |
| 19 | +error[E0277]: the trait bound `c_void: RefEncode` is not satisfied |
| 20 | + --> ui/not_encode.rs |
| 21 | + | |
| 22 | + | is_encode::<&c_void>(); |
| 23 | + | ^^^^^^^ the trait `RefEncode` is not implemented for `c_void` |
| 24 | + | |
| 25 | + = help: the following other types implement trait `RefEncode`: |
| 26 | + *const c_void |
| 27 | + *mut c_void |
| 28 | + = note: required for `&c_void` to implement `Encode` |
| 29 | +note: required by a bound in `is_encode` |
| 30 | + --> ui/not_encode.rs |
| 31 | + | |
| 32 | + | fn is_encode<T: Encode>() {} |
| 33 | + | ^^^^^^ required by this bound in `is_encode` |
| 34 | + |
| 35 | +error[E0277]: the trait bound `(): RefEncode` is not satisfied |
| 36 | + --> ui/not_encode.rs |
| 37 | + | |
| 38 | + | is_encode::<&()>(); |
| 39 | + | ^^^ the trait `RefEncode` is not implemented for `()` |
| 40 | + | |
| 41 | + = note: required for `&()` to implement `Encode` |
| 42 | +note: required by a bound in `is_encode` |
| 43 | + --> ui/not_encode.rs |
| 44 | + | |
| 45 | + | fn is_encode<T: Encode>() {} |
| 46 | + | ^^^^^^ required by this bound in `is_encode` |
| 47 | +help: consider removing the leading `&`-reference |
| 48 | + | |
| 49 | +13 - is_encode::<&()>(); |
| 50 | +13 + is_encode::<()>(); |
| 51 | + | |
| 52 | + |
| 53 | +error[E0277]: the trait bound `fn() -> &'static (): Encode` is not satisfied |
| 54 | + --> ui/not_encode.rs |
| 55 | + | |
| 56 | + | is_encode::<fn() -> &'static ()>(); |
| 57 | + | ^^^^^^^^^^^^^^^^^^^ the trait `Encode` is not implemented for `fn() -> &'static ()` |
| 58 | + | |
| 59 | + = help: the following other types implement trait `Encode`: |
| 60 | + extern "C" fn() -> Ret |
| 61 | + extern "C" fn(A) -> Ret |
| 62 | + extern "C" fn(A, ...) -> Ret |
| 63 | + extern "C" fn(A, B) -> Ret |
| 64 | + extern "C" fn(A, B, ...) -> Ret |
| 65 | + extern "C" fn(A, B, C) -> Ret |
| 66 | + extern "C" fn(A, B, C, ...) -> Ret |
| 67 | + extern "C" fn(A, B, C, D) -> Ret |
| 68 | + and $N others |
| 69 | +note: required by a bound in `is_encode` |
| 70 | + --> ui/not_encode.rs |
| 71 | + | |
| 72 | + | fn is_encode<T: Encode>() {} |
| 73 | + | ^^^^^^ required by this bound in `is_encode` |
| 74 | + |
| 75 | +error[E0277]: the trait bound `UnsafeCell<&u8>: OptionEncode` is not satisfied |
| 76 | + --> ui/not_encode.rs |
| 77 | + | |
| 78 | + | is_encode::<Option<UnsafeCell<&u8>>>(); |
| 79 | + | ^^^^^^^^^^^^^^^^^^^^^^^ the trait `OptionEncode` is not implemented for `UnsafeCell<&u8>` |
| 80 | + | |
| 81 | + = help: the following other types implement trait `OptionEncode`: |
| 82 | + &'a T |
| 83 | + &'a mut T |
| 84 | + NonNull<T> |
| 85 | + NonNull<c_void> |
| 86 | + NonZeroI16 |
| 87 | + NonZeroI32 |
| 88 | + NonZeroI64 |
| 89 | + NonZeroI8 |
| 90 | + and $N others |
| 91 | + = note: required for `Option<UnsafeCell<&u8>>` to implement `Encode` |
| 92 | +note: required by a bound in `is_encode` |
| 93 | + --> ui/not_encode.rs |
| 94 | + | |
| 95 | + | fn is_encode<T: Encode>() {} |
| 96 | + | ^^^^^^ required by this bound in `is_encode` |
0 commit comments