You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7656e97
Browse filesBrowse the repository at this point in the historyBrowse files
= help: the trait `From<i32>` is not implemented for `WrongFrom`
101
-
but trait `From<u32>` is implemented for it
100
+
help: the trait `From<i32>` is not implemented for `WrongFrom`
101
+
but trait `From<u32>` is implemented for it
102
+
--> $DIR/subgroup_composite_enum_err.rs:
103
+
|
104
+
LL | impl From<$repr> for $ident {
105
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
106
+
...
107
+
LL | enum_repr_from!(WrongFrom, u32);
108
+
| ------------------------------- in this macro invocation
102
109
= help: for that trait implementation, expected `u32`, found `i32`
103
-
= note: this error originates in the derive macro `ScalarComposite` (in Nightly builds, run with -Z macro-backtrace for more info)
110
+
= note: this error originates in the derive macro `ScalarComposite` which comes from the expansion of the macro `enum_repr_from` (in Nightly builds, run with -Z macro-backtrace for more info)
104
111
105
112
error[E0277]: the trait bound `i32: From<WrongFrom>` is not satisfied
| |_____^ `Image<SampledType, 3, DEPTH, ARRAYED, 0, SAMPLED, FORMAT, COMPONENTS>`
11
36
note: required by a bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, spirv_std::::image::{impl#1}::{constant#0}, SAMPLED, FORMAT, COMPONENTS>::gather`
12
37
--> $SPIRV_STD_SRC/image.rs:200:15
13
38
|
@@ -23,10 +48,35 @@ error[E0277]: the trait bound `Image<f32, 2, 2, 0, 0, 1, 0, 4>: HasGather` is no
23
48
LL | let r2: glam::Vec4 = image3d.gather(*sampler, v3, 0);
24
49
| ^^^^^^ the trait `HasGather` is not implemented for `Image<f32, 2, 2, 0, 0, 1, 0, 4>`
25
50
|
26
-
= help: the following other types implement trait `HasGather`:
27
-
Image<SampledType, 1, DEPTH, ARRAYED, 0, SAMPLED, FORMAT, COMPONENTS>
28
-
Image<SampledType, 3, DEPTH, ARRAYED, 0, SAMPLED, FORMAT, COMPONENTS>
29
-
Image<SampledType, 4, DEPTH, ARRAYED, 0, SAMPLED, FORMAT, COMPONENTS>
51
+
help: the following other types implement trait `HasGather`
| |_____^ `Image<SampledType, 3, DEPTH, ARRAYED, 0, SAMPLED, FORMAT, COMPONENTS>`
30
80
note: required by a bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, spirv_std::::image::{impl#1}::{constant#0}, SAMPLED, FORMAT, COMPONENTS>::gather`
| |_____^ `Image<SampledType, 3, DEPTH, ARRAYED, 0, SAMPLED, FORMAT, COMPONENTS>`
12
45
note: required by a bound in `Image::<SampledType, DIM, DEPTH, ARRAYED, spirv_std::::image::{impl#7}::{constant#0}, SAMPLED, FORMAT, COMPONENTS>::query_size_lod`
| |_____^ `Image<SampledType, 3, DEPTH, ARRAYED, 0, SAMPLED, FORMAT, COMPONENTS>`
12
45
note: required by a bound in `SampledImage::<Image<SampledType, DIM, DEPTH, ARRAYED, spirv_std::::image::{impl#9}::{constant#0}, SAMPLED, FORMAT, COMPONENTS>>::query_size_lod`
0 commit comments