|
| 1 | +error: Vector ZST not allowed |
| 2 | + --> $DIR/invalid_vector_type_macro2.rs:9:1 |
| 3 | + | |
| 4 | +9 | / #[derive(Copy, Clone, Default)] |
| 5 | +10 | | pub struct ZstVector; |
| 6 | + | |_____________________^ |
| 7 | + |
| 8 | +error[E0412]: cannot find type `ZstVector` in this scope |
| 9 | + --> $DIR/invalid_vector_type_macro2.rs:38:67 |
| 10 | + | |
| 11 | +38 | #[spirv(storage_class, descriptor_set = 0, binding = 0)] _: &(ZstVector, i32), |
| 12 | + | ^^^^^^^^^ not found in this scope |
| 13 | + |
| 14 | +error: unknown argument to spirv attribute |
| 15 | + --> $DIR/invalid_vector_type_macro2.rs:38:13 |
| 16 | + | |
| 17 | +38 | #[spirv(storage_class, descriptor_set = 0, binding = 0)] _: &(ZstVector, i32), |
| 18 | + | ^^^^^^^^^^^^^ |
| 19 | + |
| 20 | +error[E0277]: the trait bound `Vec2: Scalar` is not satisfied |
| 21 | + --> $DIR/invalid_vector_type_macro2.rs:15:9 |
| 22 | + | |
| 23 | +15 | _x: Vec2, |
| 24 | + | ^^^^ the trait `Scalar` is not implemented for `Vec2` |
| 25 | + | |
| 26 | + = help: the following other types implement trait `Scalar`: |
| 27 | + bool |
| 28 | + f32 |
| 29 | + f64 |
| 30 | + i16 |
| 31 | + i32 |
| 32 | + i64 |
| 33 | + i8 |
| 34 | + u16 |
| 35 | + and 3 others |
| 36 | +note: required by a bound in `spirv_std::vector::VectorOrScalar::Scalar` |
| 37 | + --> $SPIRV_STD_SRC/vector.rs:13:18 |
| 38 | + | |
| 39 | +13 | type Scalar: Scalar; |
| 40 | + | ^^^^^^ required by this bound in `VectorOrScalar::Scalar` |
| 41 | + |
| 42 | +error[E0277]: the trait bound `Vec2: Scalar` is not satisfied |
| 43 | + --> $DIR/invalid_vector_type_macro2.rs:12:1 |
| 44 | + | |
| 45 | +12 | #[spirv_std::spirv_vector] |
| 46 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Scalar` is not implemented for `Vec2` |
| 47 | + | |
| 48 | + = help: the following other types implement trait `Scalar`: |
| 49 | + bool |
| 50 | + f32 |
| 51 | + f64 |
| 52 | + i16 |
| 53 | + i32 |
| 54 | + i64 |
| 55 | + i8 |
| 56 | + u16 |
| 57 | + and 3 others |
| 58 | +note: required by a bound in `Vector` |
| 59 | + --> $SPIRV_STD_SRC/vector.rs:60:28 |
| 60 | + | |
| 61 | +60 | pub unsafe trait Vector<T: Scalar, const N: usize>: VectorOrScalar<Scalar = T> {} |
| 62 | + | ^^^^^^ required by this bound in `Vector` |
| 63 | + = note: this error originates in the attribute macro `spirv_std::spirv_vector` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 64 | + |
| 65 | +error[E0277]: the trait bound `NonZero<u32>: Scalar` is not satisfied |
| 66 | + --> $DIR/invalid_vector_type_macro2.rs:22:9 |
| 67 | + | |
| 68 | +22 | _x: NonZeroU32, |
| 69 | + | ^^^^^^^^^^ the trait `Scalar` is not implemented for `NonZero<u32>` |
| 70 | + | |
| 71 | + = help: the following other types implement trait `Scalar`: |
| 72 | + bool |
| 73 | + f32 |
| 74 | + f64 |
| 75 | + i16 |
| 76 | + i32 |
| 77 | + i64 |
| 78 | + i8 |
| 79 | + u16 |
| 80 | + and 3 others |
| 81 | +note: required by a bound in `spirv_std::vector::VectorOrScalar::Scalar` |
| 82 | + --> $SPIRV_STD_SRC/vector.rs:13:18 |
| 83 | + | |
| 84 | +13 | type Scalar: Scalar; |
| 85 | + | ^^^^^^ required by this bound in `VectorOrScalar::Scalar` |
| 86 | + |
| 87 | +error[E0277]: the trait bound `NonZero<u32>: Scalar` is not satisfied |
| 88 | + --> $DIR/invalid_vector_type_macro2.rs:19:1 |
| 89 | + | |
| 90 | +19 | #[spirv_std::spirv_vector] |
| 91 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Scalar` is not implemented for `NonZero<u32>` |
| 92 | + | |
| 93 | + = help: the following other types implement trait `Scalar`: |
| 94 | + bool |
| 95 | + f32 |
| 96 | + f64 |
| 97 | + i16 |
| 98 | + i32 |
| 99 | + i64 |
| 100 | + i8 |
| 101 | + u16 |
| 102 | + and 3 others |
| 103 | +note: required by a bound in `Vector` |
| 104 | + --> $SPIRV_STD_SRC/vector.rs:60:28 |
| 105 | + | |
| 106 | +60 | pub unsafe trait Vector<T: Scalar, const N: usize>: VectorOrScalar<Scalar = T> {} |
| 107 | + | ^^^^^^ required by this bound in `Vector` |
| 108 | + = note: this error originates in the attribute macro `spirv_std::spirv_vector` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 109 | + |
| 110 | +error: aborting due to 7 previous errors |
| 111 | + |
| 112 | +Some errors have detailed explanations: E0277, E0412. |
| 113 | +For more information about an error, try `rustc --explain E0277`. |
0 commit comments