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