@@ -4,6 +4,7 @@ error: useless anonymous re-export
4
4
LL | pub use self::my_mod::Bar as _;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
+ = note: only anonymous re-exports of traits are useful, this is a `struct`
7
8
note: the lint level is defined here
8
9
--> $DIR/anonymous-reexport.rs:1:9
9
10
|
@@ -15,6 +16,40 @@ error: useless anonymous re-export
15
16
|
16
17
LL | pub use self::my_mod::TyBar as _;
17
18
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19
+ |
20
+ = note: only anonymous re-exports of traits are useful, this is a `type alias`
21
+
22
+ error: useless anonymous re-export
23
+ --> $DIR/anonymous-reexport.rs:15:24
24
+ |
25
+ LL | pub use self::my_mod::{Bar as _};
26
+ | ^^^^^^^^
27
+ |
28
+ = note: only anonymous re-exports of traits are useful, this is a `struct`
29
+
30
+ error: useless anonymous re-export
31
+ --> $DIR/anonymous-reexport.rs:16:24
32
+ |
33
+ LL | pub use self::my_mod::{Bar as _, Foo as _};
34
+ | ^^^^^^^^
35
+ |
36
+ = note: only anonymous re-exports of traits are useful, this is a `struct`
37
+
38
+ error: useless anonymous re-export
39
+ --> $DIR/anonymous-reexport.rs:17:24
40
+ |
41
+ LL | pub use self::my_mod::{Bar as _, TyBar as _};
42
+ | ^^^^^^^^
43
+ |
44
+ = note: only anonymous re-exports of traits are useful, this is a `struct`
45
+
46
+ error: useless anonymous re-export
47
+ --> $DIR/anonymous-reexport.rs:17:34
48
+ |
49
+ LL | pub use self::my_mod::{Bar as _, TyBar as _};
50
+ | ^^^^^^^^^^
51
+ |
52
+ = note: only anonymous re-exports of traits are useful, this is a `type alias`
18
53
19
- error: aborting due to 2 previous errors
54
+ error: aborting due to 6 previous errors
20
55
0 commit comments