@@ -4,6 +4,7 @@ error: useless anonymous re-export
44LL | pub use self::my_mod::Bar as _;
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66 |
7+ = note: only anonymous re-exports of traits are useful, this is a `struct`
78note: the lint level is defined here
89 --> $DIR/anonymous-reexport.rs:1:9
910 |
@@ -15,6 +16,40 @@ error: useless anonymous re-export
1516 |
1617LL | pub use self::my_mod::TyBar as _;
1718 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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`
1853
19- error: aborting due to 2 previous errors
54+ error: aborting due to 6 previous errors
2055
0 commit comments