|
| 1 | +error[E0109]: type arguments are not allowed on this type |
| 2 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:15:51 |
| 3 | + | |
| 4 | +LL | ($variant:tt) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 5 | + | -------- ^^^ ^^^ type argument not allowed |
| 6 | + | | |
| 7 | + | not allowed on this type |
| 8 | +... |
| 9 | +LL | recursive_tt!(); |
| 10 | + | --------------- |
| 11 | + | | |
| 12 | + | in this macro invocation |
| 13 | + | in this macro invocation |
| 14 | + | |
| 15 | + = note: enum variants can't have type parameters |
| 16 | + = note: this error originates in the macro `recursive_tt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 17 | +help: you might have meant to specify type parameters on enum `Enum` |
| 18 | + | |
| 19 | +LL - ($variant:tt) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 20 | +LL + ($variant:tt) => (if let EnumUnit::<i32, u32>::$variant {} = 5 { true } else { false }); |
| 21 | + | |
| 22 | + |
| 23 | +error[E0308]: mismatched types |
| 24 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:15:30 |
| 25 | + | |
| 26 | +LL | ($variant:tt) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 27 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - this expression has type `{integer}` |
| 28 | + | | |
| 29 | + | expected integer, found `Enum<(), ()>` |
| 30 | +... |
| 31 | +LL | recursive_tt!(); |
| 32 | + | --------------- in this macro invocation |
| 33 | + | |
| 34 | + = note: expected type `{integer}` |
| 35 | + found enum `Enum<(), ()>` |
| 36 | + = note: this error originates in the macro `recursive_tt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 37 | + |
| 38 | +error[E0109]: type arguments are not allowed on this type |
| 39 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:25:54 |
| 40 | + | |
| 41 | +LL | () => (recursive_ident!(VariantB)); |
| 42 | + | -------- not allowed on this type |
| 43 | +LL | ($variant:ident) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 44 | + | ^^^ ^^^ type argument not allowed |
| 45 | +... |
| 46 | +LL | recursive_ident!(); |
| 47 | + | ------------------ |
| 48 | + | | |
| 49 | + | in this macro invocation |
| 50 | + | in this macro invocation |
| 51 | + | |
| 52 | + = note: enum variants can't have type parameters |
| 53 | + = note: this error originates in the macro `recursive_ident` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 54 | +help: you might have meant to specify type parameters on enum `Enum` |
| 55 | + | |
| 56 | +LL - ($variant:ident) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 57 | +LL + ($variant:ident) => (if let EnumUnit::<i32, u32>::$variant {} = 5 { true } else { false }); |
| 58 | + | |
| 59 | + |
| 60 | +error[E0308]: mismatched types |
| 61 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:25:33 |
| 62 | + | |
| 63 | +LL | ($variant:ident) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 64 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - this expression has type `{integer}` |
| 65 | + | | |
| 66 | + | expected integer, found `Enum<(), ()>` |
| 67 | +... |
| 68 | +LL | recursive_ident!(); |
| 69 | + | ------------------ in this macro invocation |
| 70 | + | |
| 71 | + = note: expected type `{integer}` |
| 72 | + found enum `Enum<(), ()>` |
| 73 | + = note: this error originates in the macro `recursive_ident` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 74 | + |
| 75 | +error[E0109]: type arguments are not allowed on this type |
| 76 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:38:51 |
| 77 | + | |
| 78 | +LL | ($variant:tt) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 79 | + | -------- ^^^ ^^^ type argument not allowed |
| 80 | + | | |
| 81 | + | not allowed on this type |
| 82 | +... |
| 83 | +LL | nested1_tt!(); |
| 84 | + | ------------- |
| 85 | + | | |
| 86 | + | in this macro invocation |
| 87 | + | in this macro invocation |
| 88 | + | |
| 89 | + = note: enum variants can't have type parameters |
| 90 | + = note: this error originates in the macro `nested2_tt` which comes from the expansion of the macro `nested1_tt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 91 | +help: you might have meant to specify type parameters on enum `Enum` |
| 92 | + | |
| 93 | +LL - ($variant:tt) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 94 | +LL + ($variant:tt) => (if let EnumUnit::<i32, u32>::$variant {} = 5 { true } else { false }); |
| 95 | + | |
| 96 | + |
| 97 | +error[E0308]: mismatched types |
| 98 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:38:30 |
| 99 | + | |
| 100 | +LL | ($variant:tt) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 101 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - this expression has type `{integer}` |
| 102 | + | | |
| 103 | + | expected integer, found `Enum<(), ()>` |
| 104 | +... |
| 105 | +LL | nested1_tt!(); |
| 106 | + | ------------- in this macro invocation |
| 107 | + | |
| 108 | + = note: expected type `{integer}` |
| 109 | + found enum `Enum<(), ()>` |
| 110 | + = note: this error originates in the macro `nested2_tt` which comes from the expansion of the macro `nested1_tt` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 111 | + |
| 112 | +error[E0109]: type arguments are not allowed on this type |
| 113 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:51:54 |
| 114 | + | |
| 115 | +LL | () => (nested2_ident!(VariantB)); |
| 116 | + | -------- not allowed on this type |
| 117 | +... |
| 118 | +LL | ($variant:ident) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 119 | + | ^^^ ^^^ type argument not allowed |
| 120 | +... |
| 121 | +LL | nested1_ident!(); |
| 122 | + | ---------------- |
| 123 | + | | |
| 124 | + | in this macro invocation |
| 125 | + | in this macro invocation |
| 126 | + | |
| 127 | + = note: enum variants can't have type parameters |
| 128 | + = note: this error originates in the macro `nested2_ident` which comes from the expansion of the macro `nested1_ident` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 129 | +help: you might have meant to specify type parameters on enum `Enum` |
| 130 | + | |
| 131 | +LL - ($variant:ident) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 132 | +LL + ($variant:ident) => (if let EnumUnit::<i32, u32>::$variant {} = 5 { true } else { false }); |
| 133 | + | |
| 134 | + |
| 135 | +error[E0308]: mismatched types |
| 136 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:51:33 |
| 137 | + | |
| 138 | +LL | ($variant:ident) => (if let EnumUnit::$variant::<i32, u32> {} = 5 { true } else { false }); |
| 139 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - this expression has type `{integer}` |
| 140 | + | | |
| 141 | + | expected integer, found `Enum<(), ()>` |
| 142 | +... |
| 143 | +LL | nested1_ident!(); |
| 144 | + | ---------------- in this macro invocation |
| 145 | + | |
| 146 | + = note: expected type `{integer}` |
| 147 | + found enum `Enum<(), ()>` |
| 148 | + = note: this error originates in the macro `nested2_ident` which comes from the expansion of the macro `nested1_ident` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 149 | + |
| 150 | +error[E0109]: type arguments are not allowed on this type |
| 151 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:64:58 |
| 152 | + | |
| 153 | +LL | ($arg1:tt, $arg2:tt) => (if let EnumUnit::VariantB::<$arg1, $arg2> {} |
| 154 | + | -------- ^^^^^ ^^^^^ type argument not allowed |
| 155 | + | | |
| 156 | + | not allowed on this type |
| 157 | +... |
| 158 | +LL | nested1_tt_args_in_first_macro!(); |
| 159 | + | --------------------------------- |
| 160 | + | | |
| 161 | + | in this macro invocation |
| 162 | + | in this macro invocation |
| 163 | + | |
| 164 | + = note: enum variants can't have type parameters |
| 165 | + = note: this error originates in the macro `nested1_tt_args_in_first_macro` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 166 | +help: you might have meant to specify type parameters on enum `Enum` |
| 167 | + | |
| 168 | +LL - ($arg1:tt, $arg2:tt) => (if let EnumUnit::VariantB::<$arg1, $arg2> {} |
| 169 | +LL + ($arg1:tt, $arg2:tt) => (if let EnumUnit::<$arg1, $arg2>::VariantB {} |
| 170 | + | |
| 171 | + |
| 172 | +error[E0308]: mismatched types |
| 173 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:64:37 |
| 174 | + | |
| 175 | +LL | ($arg1:tt, $arg2:tt) => (if let EnumUnit::VariantB::<$arg1, $arg2> {} |
| 176 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected integer, found `Enum<(), ()>` |
| 177 | +... |
| 178 | +LL | = 5 { true } else { false }); |
| 179 | + | - this expression has type `{integer}` |
| 180 | +... |
| 181 | +LL | nested1_tt_args_in_first_macro!(); |
| 182 | + | --------------------------------- in this macro invocation |
| 183 | + | |
| 184 | + = note: expected type `{integer}` |
| 185 | + found enum `Enum<(), ()>` |
| 186 | + = note: this error originates in the macro `nested2_tt_args_in_first_macro` which comes from the expansion of the macro `nested1_tt_args_in_first_macro` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 187 | + |
| 188 | +error[E0109]: type arguments are not allowed on this type |
| 189 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:77:64 |
| 190 | + | |
| 191 | +LL | ($arg1:ident, $arg2:ident) => (if let EnumUnit::VariantB::<$arg1, $arg2> {} |
| 192 | + | -------- ^^^^^ ^^^^^ type argument not allowed |
| 193 | + | | |
| 194 | + | not allowed on this type |
| 195 | +... |
| 196 | +LL | nested1_ident_args_in_first_macro!(); |
| 197 | + | ------------------------------------ |
| 198 | + | | |
| 199 | + | in this macro invocation |
| 200 | + | in this macro invocation |
| 201 | + | |
| 202 | + = note: enum variants can't have type parameters |
| 203 | + = note: this error originates in the macro `nested2_ident_args_in_first_macro` which comes from the expansion of the macro `nested1_ident_args_in_first_macro` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 204 | +help: you might have meant to specify type parameters on enum `Enum` |
| 205 | + | |
| 206 | +LL - ($arg1:ident, $arg2:ident) => (if let EnumUnit::VariantB::<$arg1, $arg2> {} |
| 207 | +LL + ($arg1:ident, $arg2:ident) => (if let EnumUnit::<$arg1, $arg2>::VariantB {} |
| 208 | + | |
| 209 | + |
| 210 | +error[E0308]: mismatched types |
| 211 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:77:43 |
| 212 | + | |
| 213 | +LL | ($arg1:ident, $arg2:ident) => (if let EnumUnit::VariantB::<$arg1, $arg2> {} |
| 214 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected integer, found `Enum<(), ()>` |
| 215 | +... |
| 216 | +LL | = 5 { true } else { false }); |
| 217 | + | - this expression has type `{integer}` |
| 218 | +... |
| 219 | +LL | nested1_ident_args_in_first_macro!(); |
| 220 | + | ------------------------------------ in this macro invocation |
| 221 | + | |
| 222 | + = note: expected type `{integer}` |
| 223 | + found enum `Enum<(), ()>` |
| 224 | + = note: this error originates in the macro `nested2_ident_args_in_first_macro` which comes from the expansion of the macro `nested1_ident_args_in_first_macro` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 225 | + |
| 226 | +error[E0109]: type arguments are not allowed on this type |
| 227 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:93:33 |
| 228 | + | |
| 229 | +LL | if let EnumUnit::VariantB::<i32, u32> {} = 5 { true } else { false }; |
| 230 | + | -------- ^^^ ^^^ type argument not allowed |
| 231 | + | | |
| 232 | + | not allowed on this type |
| 233 | + | |
| 234 | + = note: enum variants can't have type parameters |
| 235 | +help: you might have meant to specify type parameters on enum `Enum` |
| 236 | + | |
| 237 | +LL - if let EnumUnit::VariantB::<i32, u32> {} = 5 { true } else { false }; |
| 238 | +LL + if let EnumUnit::<i32, u32>::VariantB {} = 5 { true } else { false }; |
| 239 | + | |
| 240 | + |
| 241 | +error[E0308]: mismatched types |
| 242 | + --> $DIR/issue-116473-ice-wrong-span-variant-args.rs:93:12 |
| 243 | + | |
| 244 | +LL | if let EnumUnit::VariantB::<i32, u32> {} = 5 { true } else { false }; |
| 245 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - this expression has type `{integer}` |
| 246 | + | | |
| 247 | + | expected integer, found `Enum<(), ()>` |
| 248 | + | |
| 249 | + = note: expected type `{integer}` |
| 250 | + found enum `Enum<(), ()>` |
| 251 | + |
| 252 | +error: aborting due to 14 previous errors |
| 253 | + |
| 254 | +Some errors have detailed explanations: E0109, E0308. |
| 255 | +For more information about an error, try `rustc --explain E0109`. |
0 commit comments