|
| 1 | +error[E0277]: the trait bound `fn(u32) -> u32: FunctionMetadata<_>` is not satisfied |
| 2 | + --> tests/compile-fail/u32.rs:6:5 |
| 3 | + | |
| 4 | +5 | #[pg_extern] |
| 5 | + | ------------ in this procedural macro expansion |
| 6 | +6 | pub fn whatever(a: u32) -> u32 { |
| 7 | + | ^^ the trait `FunctionMetadata<_>` is not implemented for `fn(u32) -> u32` |
| 8 | + | |
| 9 | + = note: this error originates in the attribute macro `pg_extern` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 10 | + |
| 11 | +error[E0599]: `u32` has no representation in SQL |
| 12 | + --> tests/compile-fail/u32.rs:5:1 |
| 13 | + | |
| 14 | +5 | #[pg_extern] |
| 15 | + | ^^^^^^^^^^^^ non-SQL type |
| 16 | + | |
| 17 | + = note: the following trait bounds were not satisfied: |
| 18 | + `u32: SqlTranslatable` |
| 19 | + which is required by `&u32: SqlTranslatable` |
| 20 | + = note: this error originates in the attribute macro `pg_extern` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 21 | + |
| 22 | +error[E0277]: the trait bound `u32: RetAbi` is not satisfied |
| 23 | + --> tests/compile-fail/u32.rs:6:28 |
| 24 | + | |
| 25 | +6 | pub fn whatever(a: u32) -> u32 { |
| 26 | + | ^^^ the trait `BoxRet` is not implemented for `u32` |
| 27 | + | |
| 28 | + = help: the following other types implement trait `BoxRet`: |
| 29 | + f32 |
| 30 | + f64 |
| 31 | + i16 |
| 32 | + i32 |
| 33 | + i64 |
| 34 | + i8 |
| 35 | + = note: required for `u32` to implement `RetAbi` |
| 36 | + |
| 37 | +error[E0277]: `u32` cannot be passed into a Postgres function as a Datum |
| 38 | + --> tests/compile-fail/u32.rs:6:17 |
| 39 | + | |
| 40 | +5 | #[pg_extern] |
| 41 | + | ------------ in this procedural macro expansion |
| 42 | +6 | pub fn whatever(a: u32) -> u32 { |
| 43 | + | ^ the trait `ArgAbi<'_>` is not implemented for `u32` |
| 44 | + | |
| 45 | + = help: the following other types implement trait `ArgAbi<'fcx>`: |
| 46 | + f32 |
| 47 | + f64 |
| 48 | + i16 |
| 49 | + i32 |
| 50 | + i64 |
| 51 | + i8 |
| 52 | +note: required by a bound in `pgrx::callconv::Args::<'a, 'fcx>::next_arg_unchecked` |
| 53 | + --> $WORKSPACE/pgrx/src/callconv.rs |
| 54 | + | |
| 55 | + | pub unsafe fn next_arg_unchecked<T: ArgAbi<'fcx>>(&mut self) -> Option<T> { |
| 56 | + | ^^^^^^^^^^^^ required by this bound in `Args::<'a, 'fcx>::next_arg_unchecked` |
| 57 | + = note: this error originates in the attribute macro `pg_extern` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 58 | + |
| 59 | +error[E0277]: the trait bound `u32: RetAbi` is not satisfied |
| 60 | + --> tests/compile-fail/u32.rs:6:32 |
| 61 | + | |
| 62 | +5 | #[pg_extern] |
| 63 | + | ------------ in this procedural macro expansion |
| 64 | +6 | pub fn whatever(a: u32) -> u32 { |
| 65 | + | ________________________________^ |
| 66 | +7 | | a |
| 67 | +8 | | } |
| 68 | + | |_^ the trait `BoxRet` is not implemented for `u32` |
| 69 | + | |
| 70 | + = help: the following other types implement trait `BoxRet`: |
| 71 | + f32 |
| 72 | + f64 |
| 73 | + i16 |
| 74 | + i32 |
| 75 | + i64 |
| 76 | + i8 |
| 77 | + = note: required for `u32` to implement `RetAbi` |
| 78 | + = note: this error originates in the attribute macro `pg_extern` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments