11error[E0201]: duplicate definitions with name `method`:
2- --> $DIR/glob-glob-conflict.rs:30 :5
2+ --> $DIR/glob-glob-conflict.rs:27 :5
33 |
44LL | fn method(&self) -> u8;
55 | ----------------------- item in trait
@@ -10,7 +10,7 @@ LL | reuse Trait2::*;
1010 | ^^^^^^^^^^^^^^^^ duplicate definition
1111
1212error[E0201]: duplicate definitions with name `method`:
13- --> $DIR/glob-glob-conflict.rs:34 :5
13+ --> $DIR/glob-glob-conflict.rs:33 :5
1414 |
1515LL | fn method(&self) -> u8;
1616 | ----------------------- item in trait
@@ -21,35 +21,35 @@ LL | reuse Trait1::*;
2121 | ^^^^^^^^^^^^^^^^ duplicate definition
2222
2323error[E0061]: this function takes 1 argument but 0 arguments were supplied
24- --> $DIR/glob-glob-conflict.rs:10:8
24+ --> $DIR/glob-glob-conflict.rs:27:19
2525 |
26- LL | fn method(&self) -> u8 ;
27- | ^^^^^ ^ argument #1 of type `&_` is missing
26+ LL | reuse Trait2::* ;
27+ | ^ argument #1 of type `&_` is missing
2828 |
2929note: method defined here
30- --> $DIR/glob-glob-conflict.rs:10 :8
30+ --> $DIR/glob-glob-conflict.rs:8 :8
3131 |
3232LL | fn method(&self) -> u8;
3333 | ^^^^^^ ----
3434help: provide the argument
3535 |
36- LL | fn method (/* value */)(&self) -> u8 ;
37- | +++++++++++++
36+ LL | reuse Trait2::* (/* value */);
37+ | +++++++++++++
3838
3939error[E0308]: mismatched types
40- --> $DIR/glob-glob-conflict.rs:10:8
40+ --> $DIR/glob-glob-conflict.rs:27:19
4141 |
42- LL | fn method(&self) -> u8 ;
43- | ^^^^^ ^- help: consider using a semicolon here: `;`
44- | |
45- | expected `()`, found `u8`
46- | expected `()` because of default return type
42+ LL | reuse Trait2::* ;
43+ | ^- help: consider using a semicolon here: `;`
44+ | |
45+ | expected `()`, found `u8`
46+ | expected `()` because of default return type
4747
4848error[E0061]: this function takes 1 argument but 0 arguments were supplied
49- --> $DIR/glob-glob-conflict.rs:5:8
49+ --> $DIR/glob-glob-conflict.rs:33:19
5050 |
51- LL | fn method(&self) -> u8 ;
52- | ^^^^^ ^ argument #1 of type `&_` is missing
51+ LL | reuse Trait1::* ;
52+ | ^ argument #1 of type `&_` is missing
5353 |
5454note: method defined here
5555 --> $DIR/glob-glob-conflict.rs:5:8
@@ -58,17 +58,17 @@ LL | fn method(&self) -> u8;
5858 | ^^^^^^ ----
5959help: provide the argument
6060 |
61- LL | fn method (/* value */)(&self) -> u8 ;
62- | +++++++++++++
61+ LL | reuse Trait1::* (/* value */);
62+ | +++++++++++++
6363
6464error[E0308]: mismatched types
65- --> $DIR/glob-glob-conflict.rs:5:8
65+ --> $DIR/glob-glob-conflict.rs:33:19
6666 |
67- LL | fn method(&self) -> u8 ;
68- | ^^^^^ ^- help: consider using a semicolon here: `;`
69- | |
70- | expected `()`, found `u8`
71- | expected `()` because of default return type
67+ LL | reuse Trait1::* ;
68+ | ^- help: consider using a semicolon here: `;`
69+ | |
70+ | expected `()`, found `u8`
71+ | expected `()` because of default return type
7272
7373error: aborting due to 6 previous errors
7474
0 commit comments