-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathsubgroup_composite_enum_err.stderr
More file actions
148 lines (138 loc) · 5.63 KB
/
subgroup_composite_enum_err.stderr
File metadata and controls
148 lines (138 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
error: Missing #[repr(...)] attribute
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | / pub enum NoRepr {
LL | | #[default]
LL | | A,
LL | | B,
LL | | C,
LL | | }
| |_^
error: Multiple #[repr(...)] attributes found
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | / #[repr(u32)]
LL | | #[repr(u16)]
LL | | #[derive(Copy, Clone, Default, ScalarComposite)]
LL | | pub enum TwoRepr {
... |
LL | | C,
LL | | }
| |_^
error[E0412]: cannot find type `C` in this scope
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | #[repr(C)]
| ^
LL | #[derive(Copy, Clone, Default, ScalarComposite)]
| --------------- similarly named type parameter `F` defined here
|
help: there is an enum variant `crate::CRepr::C` and 6 others; try using the variant's enum
|
LL - #[repr(C)]
LL + #[repr(crate::CRepr)]
|
LL - #[repr(C)]
LL + #[repr(crate::NoDefault)]
|
LL - #[repr(C)]
LL + #[repr(crate::NoFrom)]
|
LL - #[repr(C)]
LL + #[repr(crate::NoRepr)]
|
= and 2 other candidates
help: a type parameter with a similar name exists
|
LL - #[repr(C)]
LL + #[repr(F)]
|
error[E0566]: conflicting representation hints
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | #[repr(u32)]
| ^^^
LL | #[repr(u16)]
| ^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #68585 <https://github.com/rust-lang/rust/issues/68585>
= note: `#[deny(conflicting_repr_hints)]` (part of `#[deny(future_incompatible)]`) on by default
error[E0277]: the trait bound `NoFrom: From<i32>` is not satisfied
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | #[derive(Copy, Clone, Default, ScalarComposite)]
| ^^^^^^^^^^^^^^^ unsatisfied trait bound
|
help: the trait `From<i32>` is not implemented for `NoFrom`
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | pub enum NoFrom {
| ^^^^^^^^^^^^^^^
= note: this error originates in the derive macro `ScalarComposite` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `i32: From<NoFrom>` is not satisfied
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | #[derive(Copy, Clone, Default, ScalarComposite)]
| ^^^^^^^^^^^^^^^ the trait `From<NoFrom>` is not implemented for `i32`
|
= help: the following other types implement trait `From<T>`:
`i32` implements `From<NoDefault>`
`i32` implements `From<bool>`
`i32` implements `From<i16>`
`i32` implements `From<i8>`
`i32` implements `From<u16>`
`i32` implements `From<u8>`
= note: required for `NoFrom` to implement `Into<i32>`
= note: this error originates in the derive macro `ScalarComposite` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `WrongFrom: From<i32>` is not satisfied
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | #[derive(Copy, Clone, Default, ScalarComposite)]
| ^^^^^^^^^^^^^^^ unsatisfied trait bound
|
help: the trait `From<i32>` is not implemented for `WrongFrom`
but trait `From<u32>` is implemented for it
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | impl From<$repr> for $ident {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
LL | enum_repr_from!(WrongFrom, u32);
| ------------------------------- in this macro invocation
= help: for that trait implementation, expected `u32`, found `i32`
= 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)
error[E0277]: the trait bound `i32: From<WrongFrom>` is not satisfied
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | #[derive(Copy, Clone, Default, ScalarComposite)]
| ^^^^^^^^^^^^^^^ the trait `From<WrongFrom>` is not implemented for `i32`
|
= help: the following other types implement trait `From<T>`:
`i32` implements `From<NoDefault>`
`i32` implements `From<bool>`
`i32` implements `From<i16>`
`i32` implements `From<i8>`
`i32` implements `From<u16>`
`i32` implements `From<u8>`
= note: required for `WrongFrom` to implement `Into<i32>`
= note: this error originates in the derive macro `ScalarComposite` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no variant or associated item named `default` found for enum `NoDefault` in the current scope
--> $DIR/subgroup_composite_enum_err.rs:
|
LL | _ => Self::default(),
| ^^^^^^^ variant or associated item not found in `NoDefault`
...
LL | pub enum NoDefault {
| ------------------ variant or associated item `default` not found for this enum
...
LL | enum_repr_from!(NoDefault, i32);
| ------------------------------- in this macro invocation
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `default`, perhaps you need to implement it:
candidate #1: `Default`
= note: this error originates in the macro `enum_repr_from` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 9 previous errors
Some errors have detailed explanations: E0277, E0412, E0566, E0599.
For more information about an error, try `rustc --explain E0277`.