]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/issue-24081.stderr
Rollup merge of #107190 - fmease:fix-81698, r=compiler-errors
[rust.git] / tests / ui / imports / issue-24081.stderr
1 error[E0255]: the name `Add` is defined multiple times
2   --> $DIR/issue-24081.rs:7:1
3    |
4 LL | use std::ops::Add;
5    |     ------------- previous import of the trait `Add` here
6 ...
7 LL | type Add = bool;
8    | ^^^^^^^^^^^^^^^^ `Add` redefined here
9    |
10    = note: `Add` must be defined only once in the type namespace of this module
11 help: you can use `as` to change the binding name of the import
12    |
13 LL | use std::ops::Add as OtherAdd;
14    |     ~~~~~~~~~~~~~~~~~~~~~~~~~
15
16 error[E0255]: the name `Sub` is defined multiple times
17   --> $DIR/issue-24081.rs:9:1
18    |
19 LL | use std::ops::Sub;
20    |     ------------- previous import of the trait `Sub` here
21 ...
22 LL | struct Sub { x: f32 }
23    | ^^^^^^^^^^ `Sub` redefined here
24    |
25    = note: `Sub` must be defined only once in the type namespace of this module
26 help: you can use `as` to change the binding name of the import
27    |
28 LL | use std::ops::Sub as OtherSub;
29    |     ~~~~~~~~~~~~~~~~~~~~~~~~~
30
31 error[E0255]: the name `Mul` is defined multiple times
32   --> $DIR/issue-24081.rs:11:1
33    |
34 LL | use std::ops::Mul;
35    |     ------------- previous import of the trait `Mul` here
36 ...
37 LL | enum Mul { A, B }
38    | ^^^^^^^^ `Mul` redefined here
39    |
40    = note: `Mul` must be defined only once in the type namespace of this module
41 help: you can use `as` to change the binding name of the import
42    |
43 LL | use std::ops::Mul as OtherMul;
44    |     ~~~~~~~~~~~~~~~~~~~~~~~~~
45
46 error[E0255]: the name `Div` is defined multiple times
47   --> $DIR/issue-24081.rs:13:1
48    |
49 LL | use std::ops::Div;
50    |     ------------- previous import of the trait `Div` here
51 ...
52 LL | mod Div { }
53    | ^^^^^^^ `Div` redefined here
54    |
55    = note: `Div` must be defined only once in the type namespace of this module
56 help: you can use `as` to change the binding name of the import
57    |
58 LL | use std::ops::Div as OtherDiv;
59    |     ~~~~~~~~~~~~~~~~~~~~~~~~~
60
61 error[E0255]: the name `Rem` is defined multiple times
62   --> $DIR/issue-24081.rs:15:1
63    |
64 LL | use std::ops::Rem;
65    |     ------------- previous import of the trait `Rem` here
66 ...
67 LL | trait Rem {  }
68    | ^^^^^^^^^ `Rem` redefined here
69    |
70    = note: `Rem` must be defined only once in the type namespace of this module
71 help: you can use `as` to change the binding name of the import
72    |
73 LL | use std::ops::Rem as OtherRem;
74    |     ~~~~~~~~~~~~~~~~~~~~~~~~~
75
76 error: aborting due to 5 previous errors
77
78 For more information about this error, try `rustc --explain E0255`.