fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0423]: expected value, found type alias `m1::S` 2 --> $DIR/namespace-mix.rs:34:11 3 | 4LL | pub struct TS(); 5 | ---------------- similarly named tuple struct `TS` defined here 6... 7LL | check(m1::S); 8 | ^^^^^ 9 | 10 = note: can't use a type alias as a constructor 11help: a tuple struct with a similar name exists 12 | 13LL | check(m1::TS); 14 | ^^ 15help: possible better candidates are found in other modules, you can import them into scope 16 | 17LL | use m2::S; 18 | 19LL | use namespace_mix::xm2::S; 20 | 21 22error[E0423]: expected value, found type alias `xm1::S` 23 --> $DIR/namespace-mix.rs:40:11 24 | 25LL | check(xm1::S); 26 | ^^^^^^ 27 | 28 ::: $DIR/auxiliary/namespace-mix.rs:3:5 29 | 30LL | pub struct TS(); 31 | ---------------- similarly named tuple struct `TS` defined here 32 | 33 = note: can't use a type alias as a constructor 34help: a tuple struct with a similar name exists 35 | 36LL | check(xm1::TS); 37 | ^^ 38help: possible better candidates are found in other modules, you can import them into scope 39 | 40LL | use m2::S; 41 | 42LL | use namespace_mix::xm2::S; 43 | 44 45error[E0423]: expected value, found struct variant `m7::V` 46 --> $DIR/namespace-mix.rs:100:11 47 | 48LL | V {}, 49 | ---- `m7::V` defined here 50LL | TV(), 51 | ---- similarly named tuple variant `TV` defined here 52... 53LL | check(m7::V); 54 | ^^^^^ did you mean `m7::V { /* fields */ }`? 55 | 56help: a tuple variant with a similar name exists 57 | 58LL | check(m7::TV); 59 | ^^ 60help: possible better candidates are found in other modules, you can import them into scope 61 | 62LL | use m8::V; 63 | 64LL | use namespace_mix::xm8::V; 65 | 66 67error[E0423]: expected value, found struct variant `xm7::V` 68 --> $DIR/namespace-mix.rs:106:11 69 | 70LL | check(xm7::V); 71 | ^^^^^^ did you mean `xm7::V { /* fields */ }`? 72 | 73 ::: $DIR/auxiliary/namespace-mix.rs:7:9 74 | 75LL | TV(), 76 | ---- similarly named tuple variant `TV` defined here 77 | 78help: a tuple variant with a similar name exists 79 | 80LL | check(xm7::TV); 81 | ^^ 82help: possible better candidates are found in other modules, you can import them into scope 83 | 84LL | use m8::V; 85 | 86LL | use namespace_mix::xm8::V; 87 | 88 89error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 90 --> $DIR/namespace-mix.rs:33:11 91 | 92LL | fn check<T: Impossible>(_: T) {} 93 | ----- ---------- required by this bound in `check` 94... 95LL | check(m1::S{}); 96 | ^^^^^^^ the trait `Impossible` is not implemented for `c::Item` 97 98error[E0277]: the trait bound `c::S: Impossible` is not satisfied 99 --> $DIR/namespace-mix.rs:35:11 100 | 101LL | fn check<T: Impossible>(_: T) {} 102 | ----- ---------- required by this bound in `check` 103... 104LL | check(m2::S{}); 105 | ^^^^^^^ the trait `Impossible` is not implemented for `c::S` 106 107error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 108 --> $DIR/namespace-mix.rs:36:11 109 | 110LL | fn check<T: Impossible>(_: T) {} 111 | ----- ---------- required by this bound in `check` 112... 113LL | check(m2::S); 114 | ^^^^^ the trait `Impossible` is not implemented for `c::Item` 115 116error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 117 --> $DIR/namespace-mix.rs:39:11 118 | 119LL | fn check<T: Impossible>(_: T) {} 120 | ----- ---------- required by this bound in `check` 121... 122LL | check(xm1::S{}); 123 | ^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 124 125error[E0277]: the trait bound `namespace_mix::c::S: Impossible` is not satisfied 126 --> $DIR/namespace-mix.rs:41:11 127 | 128LL | fn check<T: Impossible>(_: T) {} 129 | ----- ---------- required by this bound in `check` 130... 131LL | check(xm2::S{}); 132 | ^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::S` 133 134error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 135 --> $DIR/namespace-mix.rs:42:11 136 | 137LL | fn check<T: Impossible>(_: T) {} 138 | ----- ---------- required by this bound in `check` 139... 140LL | check(xm2::S); 141 | ^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 142 143error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 144 --> $DIR/namespace-mix.rs:55:11 145 | 146LL | fn check<T: Impossible>(_: T) {} 147 | ----- ---------- required by this bound in `check` 148... 149LL | check(m3::TS{}); 150 | ^^^^^^^^ the trait `Impossible` is not implemented for `c::Item` 151 152error[E0277]: the trait bound `fn() -> c::TS {c::TS}: Impossible` is not satisfied 153 --> $DIR/namespace-mix.rs:56:11 154 | 155LL | fn check<T: Impossible>(_: T) {} 156 | ----- ---------- required by this bound in `check` 157... 158LL | check(m3::TS); 159 | ^^^^^^ the trait `Impossible` is not implemented for `fn() -> c::TS {c::TS}` 160 161error[E0277]: the trait bound `c::TS: Impossible` is not satisfied 162 --> $DIR/namespace-mix.rs:57:11 163 | 164LL | fn check<T: Impossible>(_: T) {} 165 | ----- ---------- required by this bound in `check` 166... 167LL | check(m4::TS{}); 168 | ^^^^^^^^ the trait `Impossible` is not implemented for `c::TS` 169 170error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 171 --> $DIR/namespace-mix.rs:58:11 172 | 173LL | fn check<T: Impossible>(_: T) {} 174 | ----- ---------- required by this bound in `check` 175... 176LL | check(m4::TS); 177 | ^^^^^^ the trait `Impossible` is not implemented for `c::Item` 178 179error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 180 --> $DIR/namespace-mix.rs:61:11 181 | 182LL | fn check<T: Impossible>(_: T) {} 183 | ----- ---------- required by this bound in `check` 184... 185LL | check(xm3::TS{}); 186 | ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 187 188error[E0277]: the trait bound `fn() -> namespace_mix::c::TS {namespace_mix::c::TS}: Impossible` is not satisfied 189 --> $DIR/namespace-mix.rs:62:11 190 | 191LL | fn check<T: Impossible>(_: T) {} 192 | ----- ---------- required by this bound in `check` 193... 194LL | check(xm3::TS); 195 | ^^^^^^^ the trait `Impossible` is not implemented for `fn() -> namespace_mix::c::TS {namespace_mix::c::TS}` 196 197error[E0277]: the trait bound `namespace_mix::c::TS: Impossible` is not satisfied 198 --> $DIR/namespace-mix.rs:63:11 199 | 200LL | fn check<T: Impossible>(_: T) {} 201 | ----- ---------- required by this bound in `check` 202... 203LL | check(xm4::TS{}); 204 | ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::TS` 205 206error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 207 --> $DIR/namespace-mix.rs:64:11 208 | 209LL | fn check<T: Impossible>(_: T) {} 210 | ----- ---------- required by this bound in `check` 211... 212LL | check(xm4::TS); 213 | ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 214 215error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 216 --> $DIR/namespace-mix.rs:77:11 217 | 218LL | fn check<T: Impossible>(_: T) {} 219 | ----- ---------- required by this bound in `check` 220... 221LL | check(m5::US{}); 222 | ^^^^^^^^ the trait `Impossible` is not implemented for `c::Item` 223 224error[E0277]: the trait bound `c::US: Impossible` is not satisfied 225 --> $DIR/namespace-mix.rs:78:11 226 | 227LL | fn check<T: Impossible>(_: T) {} 228 | ----- ---------- required by this bound in `check` 229... 230LL | check(m5::US); 231 | ^^^^^^ the trait `Impossible` is not implemented for `c::US` 232 233error[E0277]: the trait bound `c::US: Impossible` is not satisfied 234 --> $DIR/namespace-mix.rs:79:11 235 | 236LL | fn check<T: Impossible>(_: T) {} 237 | ----- ---------- required by this bound in `check` 238... 239LL | check(m6::US{}); 240 | ^^^^^^^^ the trait `Impossible` is not implemented for `c::US` 241 242error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 243 --> $DIR/namespace-mix.rs:80:11 244 | 245LL | fn check<T: Impossible>(_: T) {} 246 | ----- ---------- required by this bound in `check` 247... 248LL | check(m6::US); 249 | ^^^^^^ the trait `Impossible` is not implemented for `c::Item` 250 251error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 252 --> $DIR/namespace-mix.rs:83:11 253 | 254LL | fn check<T: Impossible>(_: T) {} 255 | ----- ---------- required by this bound in `check` 256... 257LL | check(xm5::US{}); 258 | ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 259 260error[E0277]: the trait bound `namespace_mix::c::US: Impossible` is not satisfied 261 --> $DIR/namespace-mix.rs:84:11 262 | 263LL | fn check<T: Impossible>(_: T) {} 264 | ----- ---------- required by this bound in `check` 265... 266LL | check(xm5::US); 267 | ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::US` 268 269error[E0277]: the trait bound `namespace_mix::c::US: Impossible` is not satisfied 270 --> $DIR/namespace-mix.rs:85:11 271 | 272LL | fn check<T: Impossible>(_: T) {} 273 | ----- ---------- required by this bound in `check` 274... 275LL | check(xm6::US{}); 276 | ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::US` 277 278error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 279 --> $DIR/namespace-mix.rs:86:11 280 | 281LL | fn check<T: Impossible>(_: T) {} 282 | ----- ---------- required by this bound in `check` 283... 284LL | check(xm6::US); 285 | ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 286 287error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 288 --> $DIR/namespace-mix.rs:99:11 289 | 290LL | fn check<T: Impossible>(_: T) {} 291 | ----- ---------- required by this bound in `check` 292... 293LL | check(m7::V{}); 294 | ^^^^^^^ the trait `Impossible` is not implemented for `c::Item` 295 296error[E0277]: the trait bound `c::E: Impossible` is not satisfied 297 --> $DIR/namespace-mix.rs:101:11 298 | 299LL | fn check<T: Impossible>(_: T) {} 300 | ----- ---------- required by this bound in `check` 301... 302LL | check(m8::V{}); 303 | ^^^^^^^ the trait `Impossible` is not implemented for `c::E` 304 305error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 306 --> $DIR/namespace-mix.rs:102:11 307 | 308LL | fn check<T: Impossible>(_: T) {} 309 | ----- ---------- required by this bound in `check` 310... 311LL | check(m8::V); 312 | ^^^^^ the trait `Impossible` is not implemented for `c::Item` 313 314error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 315 --> $DIR/namespace-mix.rs:105:11 316 | 317LL | fn check<T: Impossible>(_: T) {} 318 | ----- ---------- required by this bound in `check` 319... 320LL | check(xm7::V{}); 321 | ^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 322 323error[E0277]: the trait bound `namespace_mix::c::E: Impossible` is not satisfied 324 --> $DIR/namespace-mix.rs:107:11 325 | 326LL | fn check<T: Impossible>(_: T) {} 327 | ----- ---------- required by this bound in `check` 328... 329LL | check(xm8::V{}); 330 | ^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::E` 331 332error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 333 --> $DIR/namespace-mix.rs:108:11 334 | 335LL | fn check<T: Impossible>(_: T) {} 336 | ----- ---------- required by this bound in `check` 337... 338LL | check(xm8::V); 339 | ^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 340 341error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 342 --> $DIR/namespace-mix.rs:121:11 343 | 344LL | fn check<T: Impossible>(_: T) {} 345 | ----- ---------- required by this bound in `check` 346... 347LL | check(m9::TV{}); 348 | ^^^^^^^^ the trait `Impossible` is not implemented for `c::Item` 349 350error[E0277]: the trait bound `fn() -> c::E {c::E::TV}: Impossible` is not satisfied 351 --> $DIR/namespace-mix.rs:122:11 352 | 353LL | fn check<T: Impossible>(_: T) {} 354 | ----- ---------- required by this bound in `check` 355... 356LL | check(m9::TV); 357 | ^^^^^^ the trait `Impossible` is not implemented for `fn() -> c::E {c::E::TV}` 358 359error[E0277]: the trait bound `c::E: Impossible` is not satisfied 360 --> $DIR/namespace-mix.rs:123:11 361 | 362LL | fn check<T: Impossible>(_: T) {} 363 | ----- ---------- required by this bound in `check` 364... 365LL | check(mA::TV{}); 366 | ^^^^^^^^ the trait `Impossible` is not implemented for `c::E` 367 368error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 369 --> $DIR/namespace-mix.rs:124:11 370 | 371LL | fn check<T: Impossible>(_: T) {} 372 | ----- ---------- required by this bound in `check` 373... 374LL | check(mA::TV); 375 | ^^^^^^ the trait `Impossible` is not implemented for `c::Item` 376 377error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 378 --> $DIR/namespace-mix.rs:127:11 379 | 380LL | fn check<T: Impossible>(_: T) {} 381 | ----- ---------- required by this bound in `check` 382... 383LL | check(xm9::TV{}); 384 | ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 385 386error[E0277]: the trait bound `fn() -> namespace_mix::c::E {namespace_mix::xm7::TV}: Impossible` is not satisfied 387 --> $DIR/namespace-mix.rs:128:11 388 | 389LL | fn check<T: Impossible>(_: T) {} 390 | ----- ---------- required by this bound in `check` 391... 392LL | check(xm9::TV); 393 | ^^^^^^^ the trait `Impossible` is not implemented for `fn() -> namespace_mix::c::E {namespace_mix::xm7::TV}` 394 395error[E0277]: the trait bound `namespace_mix::c::E: Impossible` is not satisfied 396 --> $DIR/namespace-mix.rs:129:11 397 | 398LL | fn check<T: Impossible>(_: T) {} 399 | ----- ---------- required by this bound in `check` 400... 401LL | check(xmA::TV{}); 402 | ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::E` 403 404error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 405 --> $DIR/namespace-mix.rs:130:11 406 | 407LL | fn check<T: Impossible>(_: T) {} 408 | ----- ---------- required by this bound in `check` 409... 410LL | check(xmA::TV); 411 | ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 412 413error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 414 --> $DIR/namespace-mix.rs:143:11 415 | 416LL | fn check<T: Impossible>(_: T) {} 417 | ----- ---------- required by this bound in `check` 418... 419LL | check(mB::UV{}); 420 | ^^^^^^^^ the trait `Impossible` is not implemented for `c::Item` 421 422error[E0277]: the trait bound `c::E: Impossible` is not satisfied 423 --> $DIR/namespace-mix.rs:144:11 424 | 425LL | fn check<T: Impossible>(_: T) {} 426 | ----- ---------- required by this bound in `check` 427... 428LL | check(mB::UV); 429 | ^^^^^^ the trait `Impossible` is not implemented for `c::E` 430 431error[E0277]: the trait bound `c::E: Impossible` is not satisfied 432 --> $DIR/namespace-mix.rs:145:11 433 | 434LL | fn check<T: Impossible>(_: T) {} 435 | ----- ---------- required by this bound in `check` 436... 437LL | check(mC::UV{}); 438 | ^^^^^^^^ the trait `Impossible` is not implemented for `c::E` 439 440error[E0277]: the trait bound `c::Item: Impossible` is not satisfied 441 --> $DIR/namespace-mix.rs:146:11 442 | 443LL | fn check<T: Impossible>(_: T) {} 444 | ----- ---------- required by this bound in `check` 445... 446LL | check(mC::UV); 447 | ^^^^^^ the trait `Impossible` is not implemented for `c::Item` 448 449error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 450 --> $DIR/namespace-mix.rs:149:11 451 | 452LL | fn check<T: Impossible>(_: T) {} 453 | ----- ---------- required by this bound in `check` 454... 455LL | check(xmB::UV{}); 456 | ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 457 458error[E0277]: the trait bound `namespace_mix::c::E: Impossible` is not satisfied 459 --> $DIR/namespace-mix.rs:150:11 460 | 461LL | fn check<T: Impossible>(_: T) {} 462 | ----- ---------- required by this bound in `check` 463... 464LL | check(xmB::UV); 465 | ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::E` 466 467error[E0277]: the trait bound `namespace_mix::c::E: Impossible` is not satisfied 468 --> $DIR/namespace-mix.rs:151:11 469 | 470LL | fn check<T: Impossible>(_: T) {} 471 | ----- ---------- required by this bound in `check` 472... 473LL | check(xmC::UV{}); 474 | ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::E` 475 476error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied 477 --> $DIR/namespace-mix.rs:152:11 478 | 479LL | fn check<T: Impossible>(_: T) {} 480 | ----- ---------- required by this bound in `check` 481... 482LL | check(xmC::UV); 483 | ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item` 484 485error: aborting due to 48 previous errors 486 487Some errors have detailed explanations: E0277, E0423. 488For more information about an error, try `rustc --explain E0277`.