rust/src/test/ui/issue-24081.stderr

79 lines
2.6 KiB
Plaintext
Raw Normal View History

error[E0255]: the name `Add` is defined multiple times
--> $DIR/issue-24081.rs:17:1
|
2018-02-22 18:42:32 -06:00
LL | use std::ops::Add;
| ------------- previous import of the trait `Add` here
...
2018-02-22 18:42:32 -06:00
LL | type Add = bool; //~ ERROR the name `Add` is defined multiple times
| ^^^^^^^^^^^^^^^^ `Add` redefined here
|
= note: `Add` 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
|
2018-02-24 17:01:39 -06:00
LL | use std::ops::Add as OtherAdd;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0255]: the name `Sub` is defined multiple times
--> $DIR/issue-24081.rs:19:1
|
2018-02-22 18:42:32 -06:00
LL | use std::ops::Sub;
| ------------- previous import of the trait `Sub` here
...
2018-02-22 18:42:32 -06:00
LL | struct Sub { x: f32 } //~ ERROR the name `Sub` is defined multiple times
| ^^^^^^^^^^ `Sub` redefined here
|
= note: `Sub` 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
|
2018-02-24 17:01:39 -06:00
LL | use std::ops::Sub as OtherSub;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0255]: the name `Mul` is defined multiple times
--> $DIR/issue-24081.rs:21:1
|
2018-02-22 18:42:32 -06:00
LL | use std::ops::Mul;
| ------------- previous import of the trait `Mul` here
...
2018-02-22 18:42:32 -06:00
LL | enum Mul { A, B } //~ ERROR the name `Mul` is defined multiple times
| ^^^^^^^^ `Mul` redefined here
|
= note: `Mul` 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
|
2018-02-24 17:01:39 -06:00
LL | use std::ops::Mul as OtherMul;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0255]: the name `Div` is defined multiple times
--> $DIR/issue-24081.rs:23:1
|
2018-02-22 18:42:32 -06:00
LL | use std::ops::Div;
| ------------- previous import of the trait `Div` here
...
2018-02-22 18:42:32 -06:00
LL | mod Div { } //~ ERROR the name `Div` is defined multiple times
| ^^^^^^^ `Div` redefined here
|
= note: `Div` 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
|
2018-02-24 17:01:39 -06:00
LL | use std::ops::Div as OtherDiv;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0255]: the name `Rem` is defined multiple times
--> $DIR/issue-24081.rs:25:1
|
2018-02-22 18:42:32 -06:00
LL | use std::ops::Rem;
| ------------- previous import of the trait `Rem` here
...
2018-02-22 18:42:32 -06:00
LL | trait Rem { } //~ ERROR the name `Rem` is defined multiple times
| ^^^^^^^^^ `Rem` redefined here
|
= note: `Rem` 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
|
2018-02-24 17:01:39 -06:00
LL | use std::ops::Rem as OtherRem;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 5 previous errors
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0255"