File: issue-25396.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (59 lines) | stat: -rw-r--r-- 1,921 bytes parent folder | download | duplicates (6)
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
error[E0252]: the name `baz` is defined multiple times
  --> $DIR/issue-25396.rs:4:5
   |
LL | use foo::baz;
   |     -------- previous import of the module `baz` here
LL | use bar::baz;
   |     ^^^^^^^^ `baz` reimported here
   |
   = note: `baz` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use bar::baz as other_baz;
   |              ++++++++++++

error[E0252]: the name `Quux` is defined multiple times
  --> $DIR/issue-25396.rs:7:5
   |
LL | use foo::Quux;
   |     --------- previous import of the trait `Quux` here
LL | use bar::Quux;
   |     ^^^^^^^^^ `Quux` reimported here
   |
   = note: `Quux` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use bar::Quux as OtherQuux;
   |               ++++++++++++

error[E0252]: the name `blah` is defined multiple times
  --> $DIR/issue-25396.rs:10:5
   |
LL | use foo::blah;
   |     --------- previous import of the type `blah` here
LL | use bar::blah;
   |     ^^^^^^^^^ `blah` reimported here
   |
   = note: `blah` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use bar::blah as other_blah;
   |               +++++++++++++

error[E0252]: the name `WOMP` is defined multiple times
  --> $DIR/issue-25396.rs:13:5
   |
LL | use foo::WOMP;
   |     --------- previous import of the value `WOMP` here
LL | use bar::WOMP;
   |     ^^^^^^^^^ `WOMP` reimported here
   |
   = note: `WOMP` must be defined only once in the value namespace of this module
help: you can use `as` to change the binding name of the import
   |
LL | use bar::WOMP as OtherWOMP;
   |               ++++++++++++

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0252`.